jQuery.fx.off (since jQuery 1.3) is a global Boolean that turns every jQuery animation on or off. When true, effect methods jump to the final state immediately. When false (default), durations and easing run normally.
Syntax
Start with these common calls. Keep them short and readable.
jQuery
jQuery.fx.off // read → true or false
jQuery.fx.off = true; // disable all effects (instant end)
jQuery.fx.off = false; // re-enable normal durations
// $.fx.off is the same property
// Callbacks still run — only the tween is skipped
Call
What it does
jQuery.fx.off
Learn jQuery.fx.off: globally disable all jQuery animations when true (since 1.3), snap effects to their final state, re-enable with false, and use it for low-resource devices and reduced-motion accessibility.
Load jQuery before your script (CDN or local file), then wrap DOM work in $(function () { ... }) when needed.
Parameters
Parameter
Description
Step 1
Optionally read jQuery.fx.off to see the current state.
Step 2
Set true to disable (or false to enable).
Step 3
Call .fadeIn(), .animate(), .toggle("slow"), etc.
Return Value
Return Value
Description
Boolean
Often true or false depending on the match or state.
jQuery Examples
Example 1 — Official Toggle Demo
Flip $.fx.off, then run .toggle("slow") — snap vs animate.
jQuery
var toggleFx = function () {
$.fx.off = !$.fx.off;
$("#status").text("jQuery.fx.off = " + $.fx.off);
};
toggleFx();
$("#toggle-fx").on("click", toggleFx);
$("#run").on("click", function () {
$(".box").toggle("slow");
});
fx.off true → fade + animate complete in one step
fx.off false → both tweens run over 800 ms
How It Works
Set flag. Assign before starting effects.
Same API. Call signatures stay unchanged.
Off path. Duration is treated as zero; end CSS applies now.
Frequently Asked Questions
When set to true, jQuery.fx.off globally disables all jQuery animations. Effect methods such as .animate(), .fadeIn(), and .slideToggle() jump elements to their final state immediately instead of tweening. It is a static Boolean on jQuery.fx — not a method on a collection.
It was added in jQuery 1.3 and remains a stable global switch in current releases — unlike jQuery.fx.interval, which was deprecated in 3.0 and removed in 4.0.
A Boolean. true means all jQuery effects are disabled globally; false (the default) means durations and easing run normally.
Yes. Queue progression and complete callbacks still fire. Only the visible tween is skipped — the end CSS is applied in one step.
Assign jQuery.fx.off = false (or $.fx.off = false). Every subsequent effect uses normal durations again. You can toggle it at runtime.
Official use cases: low-resource devices where animation timers cost CPU, and users with accessibility / motion sensitivity. Pair with prefers-reduced-motion, or use it in tests to skip animated waits.