THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

jQuery finish() Method

jQuery Effect Methods 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 jQuery Effect Methods