]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #12744: Document ability to remove animation on modals
authorMark Otto <otto@github.com>
Fri, 21 Feb 2014 22:52:15 +0000 (14:52 -0800)
committerMark Otto <otto@github.com>
Fri, 21 Feb 2014 22:52:15 +0000 (14:52 -0800)
docs/_includes/nav-javascript.html
docs/javascript.html

index aeeafe264117ab105e962c3e3c872d21d03ccd13..741b9cf810d26b3e1b6d70a1d905e0d4115e2013 100644 (file)
@@ -14,6 +14,7 @@
   <ul class="nav">
     <li><a href="#modals-examples">Examples</a></li>
     <li><a href="#modals-sizes">Sizes</a></li>
+    <li><a href="#modals-remove-animation">Remove animation</a></li>
     <li><a href="#modals-usage">Usage</a></li>
   </ul>
 </li>
index 561fc3fd9f2effccfe1115d2341b35959fb783da..cc125d83284ac8ca3bb1f84a112e330cdb5fa97d 100644 (file)
@@ -298,6 +298,13 @@ $('#myModal').on('show.bs.modal', function (e) {
     </div><!-- /.modal-dialog -->
   </div><!-- /.modal -->
 
+  <h2 id="modals-remove-animation">Remove animation</h2>
+  <p>For modals that simply appear rather than fade in to view, remove the <code>.fade</code> class from your modal markup.</p>
+{% highlight html %}
+<div class="modal" tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
+  ...
+</div>
+{% endhighlight %}
 
   <h2 id="modals-usage">Usage</h2>
   <p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.modal-open</code> to the <code>&lt;body&gt;</code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p>