X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

jQuery jQuery.fx.off Property

jQuery Properties jQuery Properties

Example

Toggle animation on and off:

$("#true").click(function(){
  jQuery.fx.off = true;
});
$("#false").click(function(){
  jQuery.fx.off = false;
});
$("#toggle").click(function(){
  $("div").toggle("slow");
});

Try it yourself »

Definition and Usage

The jQuery.fx.off property is used to globally disable/enable all animations.

Default value is false, which allows animations to run normally. When set to true, all animation methods will be disabled, which will immediately set elements to their final state, instead of displaying an effect.

Tip: To shorten the code, it is possible to use $.fx.off instead of jQuery.fx.off.


Syntax

jQuery.fx.off = true|false;

Parameter Description
true Specifies that animations should be disabled
false  Default. Specifies that animations should be enabled


jQuery Properties jQuery Properties


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook