Latest web development tutorials

jQuery finish () method

jQuery Effect Methods jQuery Effect Methods

Examples

Complete the animation is currently running:

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

try it"

Definition and Usage

finish () method to stop the animation is currently running, remove all queued animation, and for the completion of all elements of the selected animation.

This method is similar to .stop (true, true) method, except that, finish () will cause all queued animation CSS properties stopped.


grammar

$(selector).finish(queueName)

参数 描述
queueName 可选。规定要停止动画的队列名称。


jQuery Effect Methods jQuery Effect Methods