jQuery stop()メソッド
例
現在実行中のアニメーションを停止します。
$("#stop").click(function(){
$("div").stop();
});
定義と使用法
stop()メソッドは、選択した要素に対して現在実行中のアニメーションを停止します。
構文
$(selector).stop(stopAll,goToEnd)
Parameter | Description |
---|---|
stopAll | Optional. A Boolean value specifying whether or not to stop the queued animations as well. Default is false |
goToEnd | Optional. A Boolean value specifying whether or not to complete all animations immediately. Default is false |
自分で試してみてください-例
停止するキューに入れられたアニメーションを停止する方法。
に完了するすべてのアニメーションをすぐに完了する方法。