]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Port #13988 over to hosted docs
authorChris Rebert <code@rebertia.com>
Sat, 27 Sep 2014 01:20:51 +0000 (18:20 -0700)
committerChris Rebert <code@rebertia.com>
Sat, 27 Sep 2014 01:20:51 +0000 (18:20 -0700)
javascript/index.html

index a4227b49e5a1ecc6459e45f4066d161b4ba9b5d8..2929d3586fb64ee096c1c9bb257ae0fd84ebef8e 100644 (file)
 
   <h3>Via data attributes</h3>
   <p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>
-  <p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load.</p>
+  <p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load. <strong class="text-danger">It cannot be used in combination with (redundant and unnecessary) explicit JavaScript initialization of the same carousel.</strong></p>
 
   <h3>Via JavaScript</h3>
   <p>Call carousel manually with:</p>