I'm using the Owl Carousel on my site. According to their documentation, this piece of JavaScript should work:
<script>
$("#intro").owlCarousel({
// Most important owl features
//Autoplay
autoPlay : 5000,
stopOnHover : false
)}
</script>
But for some reason it will not autoplay. Here is the HTML of the slider:
<div id="intro" class="owl-carousel">
<div class="item first">
<div class="container">
<div class="row">
<div class="carousel-caption-left colour-white">
<h2>Title Text</h2>
<h1>Sub title text here.</h1>
<p>If you like you can even add a sentence or two here.</p>
</div>
</div>
</div>
<div class="overlay-bg"></div>
</div>
<div class="item second">
<div class="container">
<div class="carousel-caption-left colour-white">
<h2>Title Text</h2>
<h1>Sub title text here.</h1>
<p>If you like you can even add a sentence or two here.</p>
</div>
</div>
<div class="overlay-bg"></div>
</div>
<div class="item third">
<div class="container">
<div class="carousel-caption-left colour-white">
<h2>Title Text</h2>
<h1>Sub title text here.</h1>
<p>If you like you can even add a sentence or two here.</p>
</div>
</div>
<div class="overlay-bg"></div>
</div>
</div>
In my case autoPlay not working but autoplay is working fine
I only used this
no owl.autoplay.js is need it & my owl carousel version is @version 2.0.0
hope this thing help you :)
add this
You should set both autoplay and autoplayTimeout properties. I used this code, and it works for me:
This code should work for you
If you using v1.3.3 then use following property
Or using latest version then use following property
With version 2.3.4, you need the to add the owl.autoplay.js plugin. Then do the following