I'm using version 2.0.4 and I'm trying to put a carousel on a webpage. The
carousel works just fine: it loads, starts cycling and the next and
previous buttons work just fine. Only thing that doesn't seem to work is
that it doesn't loop: after the last picture the carousel folds and
disappears. Am I wrong in thinking it should loop the pictures by default?
1. <div id="myCarousel" class="carousel slide">
2. <!-- Carousel items -->
3. <div class="carousel-inner">
4. <div class="active item">
5. ...
6. </div>
7. <div class="item">
8. ...
9. </div>
10. ...
11. <!-- Carousel nav -->
12. <a class="carousel-control left" href="#myCarousel" data-slide="prev"
>‹</a>
13. <a class="carousel-control right" href="#myCarousel" data-slide=
"next">›</a>
14. </div>
15. </div>
16.
17.
18.
19.
20.
21. <script>
22. $('.carousel').carousel({});
23. </script>