From 92bb465ba3a33dd53f61e01aad97abf10e4f7166 Mon Sep 17 00:00:00 2001 From: Ben Combee Date: Sun, 25 Aug 2013 14:49:15 -0500 Subject: [PATCH] javascript.html: add data-ride note carousel docs were missing mention of the data-ride attribute used to automatically start the carousel at load time --- javascript.html | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript.html b/javascript.html index 6a0807952e..4d3d08800b 100644 --- a/javascript.html +++ b/javascript.html @@ -1756,6 +1756,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {

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.

Via JavaScript

Call carousel manually with: