FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

jQuery stop() Method

jQuery Effect Methods jQuery Effect Methods

Example

Stop the currently running animation:

$("#stop").click(function(){
    $("div").stop();
});
Try it Yourself »

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

Examples

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.


jQuery Effect Methods jQuery Effect Methods