aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes/js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2015-03-25 18:14:15 -0700
committerChris Rebert <[email protected]>2015-03-25 18:14:15 -0700
commitd6714d1383316e449e6766d038bd118039dfd617 (patch)
treef72600bfed347a6078705fa8a3088fca9d4ade0e /docs/_includes/js
parente3c10d0d014ff4c9cf5e63cdb2cbf5bd59c7f7e8 (diff)
parente8a5112b31b063db310e5176beb591f87fd5354d (diff)
downloadbootstrap-d6714d1383316e449e6766d038bd118039dfd617.tar.xz
bootstrap-d6714d1383316e449e6766d038bd118039dfd617.zip
Merge pull request #16157 from twbs/fix-16069
Document how to disable transitions in jQuery plugins
Diffstat (limited to 'docs/_includes/js')
-rw-r--r--docs/_includes/js/transitions.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/_includes/js/transitions.html b/docs/_includes/js/transitions.html
index 00b6914e1..08d9c3ab8 100644
--- a/docs/_includes/js/transitions.html
+++ b/docs/_includes/js/transitions.html
@@ -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>