]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document how to disable transitions in jQuery plugins; fixes #16069 16157/head
authorChris Rebert <code@rebertia.com>
Thu, 26 Mar 2015 00:56:57 +0000 (17:56 -0700)
committerChris Rebert <code@rebertia.com>
Thu, 26 Mar 2015 00:56:59 +0000 (17:56 -0700)
[skip sauce]

docs/_includes/js/transitions.html

index 00b6914e140a0a074aa68e1b56eb26e0a61738a5..08d9c3ab81a7810a0c8ac8484757cd9fc49b702c 100644 (file)
@@ -3,6 +3,13 @@
 
   <h2>About transitions</h2>
   <p>For simple transition effects, include <code>transition.js</code> once alongside the other JS files. If you're using the compiled (or minified) <code>bootstrap.js</code>, there is no need to include this&mdash;it's already there.</p>
+
   <h2>What's inside</h2>
   <p>Transition.js is a basic helper for <code>transitionEnd</code> events as well as a CSS transition emulator. It's used by the other plugins to check for CSS transition support and to catch hanging transitions.</p>
+
+  <h2>Disabling transitions</h2>
+  <p>Transitions can be globally disabled using the following JavaScript snippet, which must come after <code>transition.js</code> (or <code>bootstrap.js</code> or <code>bootstrap.min.js</code>, as the case may be) has loaded:</p>
+{% highlight js %}
+$.support.transition = false
+{% endhighlight %}
 </div>