Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

jQuery finish() Method

❮ jQuery Effect Methods

Example

Finish the currently running animation:

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

Definition and Usage

The finish() method stops the currently-running animations, removes all queued animations, and completes all animations for the selected elements.

This method is similar to the .stop(true,true) method, except that finish() also causes the CSS property of all queued animations to stop.


Syntax

$(selector).finish(queueName)

Parameter Description
queueName Optional. Specifies the name of the queue to stop animations

❮ jQuery Effect Methods