How to disable animation in jQuery?

devquora
devquora

Posted On: Feb 22, 2018

 

The jQuery stop() function is used to stop all the animations currently running on the selected elements. It stops the animation before it is finished.

Syntax

$(selector).stop(stopAll,goToEnd); 

To completely disable elements globally, then set the jQuery.fx.off property to true. The default value is false which lets run all the animations normally. Setting it true disables all animations from all the elements immediately and sets the element to the final state.

Syntax

jQuery.fx.off = true|false; 

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    jQuery Interview Questions

    What is jQuery?

    jQuery is a lightweight JavaScript library which gives a quick and simple method for HTML DOM traversing and manipulati..

    jQuery Interview Questions

    What are the advantages of JQuery ?

    There are many advantages of JQuery. Some of them are :It is more like a JavaScript enhancement so there is no overhea..

    jQuery Interview Questions

    What are the different type of selectors in Jquery?

    There are 3 types of selectors in JqueryCSS Selector XPath Selector Custom Selector..