I am currently working with a carousel using Twitter Bootstrap to display 5 items. Here is an example of what I have set up:
<div id="carolsel" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active">
<div class="col-lg-3">
<p>Content</p>
</div>
<div class="col-lg-3">
<p>Content</p>
</div>
<div class="col-lg-3">
<p>Content</p>
</div>
<div class="col-lg-3">
<p>Content</p>
</div>
</div>
<div class="item">
<div class="col-lg-3">
<p>Content</p>
</div>
</div>
</div>
</div>
Currently, the carousel displays 4 items and then one item alone. Is there a way to create an infinite loop so that the first content appears right after the last?
The item
divs are generated dynamically through a foreach loop pulling content from a MySQL database.