English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

jQuery Effect finish() Method

jQuery Effect Methods

finish() method stops the currently running animation, deletes all queued animations, and completes all animations of the selected element.

This method is similar tostop(true,true)Method, in addition to finish(), will also stop the CSS properties of all queued animations.

Syntax:

$(selector).finish(queueName)

Example

Complete the currently running animation:

$("#btn2").click(function(){
  $("div").finish();
});
Test and see‹/›

Parameter Value

ParametersDescription
queueName(Optional) The name of the animation queue to stop. The default isfx

jQuery Effect Methods