jQuery stop animation

jQuery stop() method

The jQuery stop() method is used to stop animations or effects before they are completed.

The stop() method works for all jQuery effect functions, including swipes, fades, and custom animations.



The optional stopAll parameter specifies whether the animation queue should be cleared. The default is false, which means that only active animations are stopped, allowing any queued animation to be executed backwards.

The optional goToEnd parameter specifies whether the current animation is completed immediately. The default is false.

Therefore, by default, stop() will clear the current animation specified on the selected element.

The following example demonstrates the stop() method with no arguments:

Run the program and try it out

jQuery stop() animation (with parameters)

Run the program and try it out

Last Updated: 2018-11-24 14:38:44 By Akshay


share_facebook share_twitter share_google_plus

Please Comment Here :