Nitesh Kumar  Singh
Nitesh Kumar Singh

Reputation: 164

Owl Carousel not working Autoplay

Owl Carousel not working Autoplay

 <script>
    $(document).ready(function(){
     $("#owl-demo-main").owlCarousel({
      autoPlay : 1000,
      stopOnHover : false,
       )}
         });
       </script>

Upvotes: 1

Views: 4990

Answers (1)

tony
tony

Reputation: 305

It works if you set autoplaySpeed and autoplayTimeout to the same value.

autoplaySpeed:1000,
autoplayTimeout: 1000

you can also try this...

owl.owlCarousel({
    items:4,
    loop:true,
    margin:10,
    autoplay:true,
    autoplayTimeout:1000,
    autoplayHoverPause:true,
    autoplaySpeed:5000  
});

just so you know this is also a bug that has been reported to GitHub.

Upvotes: 2

Related Questions