Widget:Carousel: Difference between revisions
From Jcastle.info
No edit summary |
|||
Line 28: | Line 28: | ||
</div> | </div> | ||
<!-- Left and right controls --> | |||
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="pre"> | |||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | |||
<span class="sr-only">Previous</span> | |||
</a> | |||
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next"> | |||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> | |||
<span class="sr-only">Next</span> | |||
</a> | |||
</div> | </div> | ||
</div> | </div> |
Revision as of 20:48, 23 July 2017
Carousel Options
The data-wrap attribute specifies whether the carousel should go through all slides continuously, or stop at the last slide.
In this example, we have set wrap to "false", which will stop the carousel from sliding when the last item is shown.