ExampleStop a running animation:
Try it yourself » |
The stop() method stops the currently running animation for selected elements.
$(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 the current animation immediately. Default is false |
![]() |
Try it Yourself - Examples |
Stop
queued animations as well
How to stop all queued animations as well.
Complete the current animation immediately
How to complete the current
animation immediately (stops all queued animations as well).