Preventing twitter bootstrap carousel from auto sliding on page load
The problem with carousel automatically sliding after prev/next button press is solved.
$('.carousel').carousel({
pause: true,
interval: false
});
GitHub commit 78b927b
if you're using bootstrap 3 set data-interval="false"
on the HTML structure of carousel
example:
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel" data-interval="false">
Actually, the problem is now solved. I added the 'pause' argument to the method 'carousel' like below:
$(document).ready(function() {
$('.carousel').carousel('pause');
});
Anyway, thanks so much @Yohn for your tips toward this solution.
Or if you're using Bootstrap 3.0 you can stop the cycling with data-interval="false" for instance
<div id="carousel-example-generic" class="carousel slide" data-interval="false">
Other helpful carousel data attributes are here -> http://getbootstrap.com/javascript/#carousel-usage