jQuery Effect - stop() Method
Example
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 on 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 on the selected element.
- Stop the animation queue after the current animation completes
- Stop all queued animations on the selected element, but allow the current animation to complete.