jQuery stop() Metoda
Przykład
Zatrzymaj aktualnie uruchomioną animację:
$("#stop").click(function(){
$("div").stop();
});
Definicja i użycie
Metoda stop() zatrzymuje aktualnie uruchomioną animację dla wybranych elementów.
Składnia
$(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 |
Spróbuj sam - przykłady
Jak zatrzymać animacje w kolejce.
Jak natychmiast ukończyć wszystkie animacje.