I\'m using the Owl Carousel on my site. According to their documentation, this piece of JavaScript should work:
You are may be on the wrong owl's doc version.
autoPlay is for 1st version
autoplay is for 2nd version
You should set both autoplay and autoplayTimeout properties. I used this code, and it works for me:
$('.owl-carousel').owlCarousel({
autoplay: true,
autoplayTimeout: 5000,
navigation: false,
margin: 10,
responsive: {
0: {
items: 1
},
600: {
items: 2
},
1000: {
items: 2
}
}
})
With version 2.3.4, you need the to add the owl.autoplay.js plugin. Then do the following
var owl = $('.owl-carousel');
owl.owlCarousel({
items:1, //how many items you want to display
loop:true,
margin:10,
autoplay:true,
autoplayTimeout:10000,
autoplayHoverPause:true
});
Your Javascript should be
<script>
$("#intro").owlCarousel({
// Most important owl features
//Autoplay
autoplay: false,
autoplayTimeout: 5000,
autoplayHoverPause: true
)}
</script>
If you using v1.3.3 then use following property
autoPlay : 5000
Or using latest version then use following property
autoPlay : true
First, you need to call the owl.autoplay.js.
this code works for me : owl.trigger('play.owl.autoplay',[1000]);