jQuery stop() Method

jQuery Effect Methods : Stop the currently running animation

Definition and Usage

The stop() method stops the currently running animation for the selected elements.

Syntax

$(selector).stop(stopAll,goToEnd)
Parameter Description
stopAll Optional. A Boolean value specifying whether or not to stop the queued animations as well. Default is false
goToEnd Optional. A Boolean value specifying whether or not to complete all animations immediately. Default is false

Try it Yourself - Examples

Stop queued animations as well
How to stop the queued animations.
Complete all animations immediately
How to complete all animations immediately.