jQuery stop() Metode
Voorbeeld
Stop die huidige animasie:
$("#stop").click(function(){
$("div").stop();
});
Definisie en gebruik
Die stop() metode stop die huidige animasie vir die geselekteerde elemente.
Sintaksis
$(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 |
Probeer dit self - voorbeelde
Hoe om die tou-animasies te stop.
Hoe om alle animasies onmiddellik te voltooi.