English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
$(selector).finish(queueName)
Complete the currently running animation:
$("#btn2").click(function(){ $("div").finish(); });Test and see‹/›
Parameters | Description |
---|---|
queueName | (Optional) The name of the animation queue to stop. The default isfx |