jQuery Effect - stop() Method
Examples
Stop the currently running animation:
$("#stop").click(function(){ $("#box").stop(); });
Definition and Usage
The stop() method stops the currently running animation.
Syntax
$(selector).stop(stopAll,goToEnd)
Parameters | Description |
---|---|
stopAll | Optional. Specifies whether to stop all queued animations of the selected element. |
goToEnd |
Optional. Specifies whether to allow the current animation to complete. This parameter can only be used when the stopAll parameter is set. |
More Examples
- Stop the animation queue
- Stop all queued animations of the selected element.
- Stop the animation queue after the current animation completes
- Stop all queued animations of the selected element, but allow the current animation to complete.