Latest web development tutorials

jQuery stop () method

jQuery Effect Methods jQuery Effect Methods

Examples

Stop the animation is currently running:

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

try it"

Definition and Usage

stop () method to stop the selected elements currently running animation.


grammar

$(selector).stop(stopAll,goToEnd)

参数 描述
stopAll 可选。布尔值,规定是否停止被选元素的所有加入队列的动画。默认是 false。
goToEnd 可选。布尔值,规定是否立即完成当前的动画。默认是 false。

Examples

More examples

Stop the animation queue
How to stop all queued animation of the selected element.

Immediately complete all the animation
Now how to do all the animation.


jQuery Effect Methods jQuery Effect Methods