Example

Stop a running animation:

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

Try it yourself »

Definition and Usage

The stop() method stops the currently running animation for 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 the current animation immediately. Default is false
 
Examples

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).