how to make slide js in owl carousel auto
$(document).ready(function(){ owl = $(".owl-carousel"); owl.owlCarousel({ loop:true, autoplaySpeed:1000, items:5, autoplay:true }); });
Here is what the above code is Doing:
1. We are creating a variable called owl and assigning it to the class owl-carousel.
2. We are then calling the owlCarousel() function on the owl variable.
3. We are passing in a JSON object with the following properties:
a. loop: true – this will loop the carousel
b. autoplaySpeed: 1000 – this will set the speed of the carousel to 1 second
c. items: 5 – this will set the number of items to 5
d. autoplay: true – this will set the carousel to autoplay