I have a problem that I cannot understand. I use bootstrap carousel and everything works fine, except for transitions: the following elements come out of the myCarousel div when the floating point transition starts, and the previous active elements go out of the myCarousel div, because they are replaced with my next element.
Here is my html code:
<div id="myCarousel" class="carousel slide span6"> <div id="carousel-inner"> <div class="active item"> <img src="img/abstract-landscape-paintings-bursting-sun.jpg" /> </div> <div class="item"> <img src="img/charnwood_forest_landscape.jpg" /> </div> </div> <a class="carousel-control left" href="#myCarousel" data-slide="prev">‹</a> <a class="carousel-control right" href="#myCarousel" data-slide="next">›</a> </div>
I use only the carousel script:
$(document).ready(function() { $(".carousel").carousel({ interval: 5000, pause: "hover", }); });
Here is a link to an example of my problem so you can check all my code: http://todoapp.nfshost.com/slide
Anyone who can understand what the problem is?
Thanks!
source share