Apparently, the demo page http://twitter.github.com/bootstrap/javascript.html#carousel seems like the carousel stops spinning after it reaches the rightmost image on the slide.
The demo used $('#myCarousel').carousel() to launch a carousel.
$('#myCarousel').carousel()
I tried
and
$('#myCarousel').carousel('cycle')
but the carousel continued to stop when it came to the last picture.
I saw some messages on the Internet that people really want to stop him on a bicycle forever, which was published as 3 weeks ago. http://groups.google.com/group/twitter-bootstrap/browse_thread/thread/9eeedbb0e68789e3/bf99468117bd669a
What should I do to keep my carousel spinning after it reaches the last image?
This is actually a bug fixed in 2.0.2
You can try deleting line 86 in bootstrap-carousel.js, which,
if (!$next.length) return
See: issue 2036
We have created an endless jquery scroller for our corporate website. Our approach was that when each image scrolled from the screen, we cloned it, add a clone to the opposite side and delete the one that just left the visible area.
try it.
$('.carousel').carousel()
This is literally from the boot site. It makes no sense to me that this would not be concrete. But in any case, there is something to improve the document.
Source: https://habr.com/ru/post/1398744/More articles:matplotlib - how to change the sign of the axes of a basic exponent - pythonjavascript && evaluate - javascriptClearing selection options using javascript on change - javascriptWhy doesn't a replacement return anything to an empty string? - vb.net-2010Are OpenGL textures more memory efficient than Android bitmaps? - androidJava GUI questions? - javaHow to generate code for an AST tree processed by a dummy language? - compiler-constructionRelevance of Java Tutorial - javaHow to set time range for a date - jquery-mobileIs it possible to forward a typedef declaration that is in a namespace? - c ++All Articles