HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE