From: Mark Otto Date: Mon, 27 Jan 2014 17:24:51 +0000 (-0800) Subject: document id requirement in carousels per #12393 X-Git-Tag: v3.1.1~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08e871f01fd8848101e152c9afdd758280de27d;p=thirdparty%2Fbootstrap.git document id requirement in carousels per #12393 --- 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.