jQuery .stop() method stops the currently running animation on the matched elements
Syntax and Description
.stop([clearQueue][, jumpToEnd])
Stop the currently running animation on the matched elements.
clearQueue (optional)
A Boolean(Defaults to false) indicating whether to remove queued animation as well.jumpToEnd (optional)
A Boolean(Defaults to false) indicating whether to complete the current animation immediately.
Return value
The jQuery object, for chaining purposes.
When .stop()
is called on an element, the currently running animation is stopped.