diff --git a/docs/javascript.html b/docs/javascript.html index 7d41a0378a..225f48daba 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1923,6 +1923,9 @@ $('#myCollapsible').on('hidden.bs.collapse', function () { +

Multiple carousels

+

Carousels require the use of an id on the outter most container, .carousel, for carousel controls to properly function. When adding multiple carousels, or when changing a carousel's id, be sure to update the relevant controls.

+

Via data attributes

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2", which shifts the slide position to a particular index beginning with 0.

The data-ride="carousel" attribute is used to mark a carousel as animating starting at page load.