Metoda jQuery stop() .

❮ Metody efektů jQuery

Příklad

Zastavte aktuálně běžící animaci:

$("#stop").click(function(){
  $("div").stop();
});

Definice a použití

Metoda stop() zastaví aktuálně spuštěnou animaci pro vybrané prvky.


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

Zkuste si to sami - příklady


Jak zastavit animace ve frontě.


dokončit všechny animace.


❮ Metody efektů jQuery