jQuery stop() Methode
Beispiel
Stoppen Sie die aktuell laufende Animation:
$("#stop").click(function(){
$("div").stop();
});
Definition und Verwendung
Die Methode stop() stoppt die aktuell laufende Animation für die ausgewählten Elemente.
Syntax
$(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 |
Probieren Sie es selbst aus - Beispiele
in der Warteschlange So stoppen Sie die Animationen in der Warteschlange.
abschließen So schließen Sie alle Animationen sofort ab.