Easy Tutorial
❮ Home Traversing Eq ❯

jQuery stop() Method

jQuery Effects Methods

Example

Stop the currently running animation:

$("#stop").click(function(){
    $("div").stop();
});

Definition and Usage

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


Syntax

Parameter Description
stopAll Optional. Boolean value, specifies whether to stop all queued animations for the selected elements. Default is false.
goToEnd Optional. Boolean value, specifies whether to complete the current animation immediately. Default is false.

More Examples

Stop Animation Queue

Complete All Animations Immediately


jQuery Effects Methods

❮ Home Traversing Eq ❯