How to globally disable an animation using jQuery?
Answers
Answered by
0
To globally disable an animation using jQuery, use the jQuery.fx.off() method.
To enable animation:
$("#enable").click(function(){
jQuery.fx.off = false;
});
To disable animation, set jQuery.fx.off() as true:
$("#disable").click(function(){
jQuery.fx.off = true;
});
You can try to run the following code to globally disable an animation using jQuery:
Similar questions