jQuery stop () method
Examples
Stop the animation is currently running:
$("#stop").click(function(){
$("div").stop();
});
$("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。 |
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.