jQuery stop() Metodo
Esempio
Interrompi l'animazione attualmente in esecuzione:
$("#stop").click(function(){
$("div").stop();
});
Definizione e utilizzo
Il metodo stop() interrompe l'animazione attualmente in esecuzione per gli elementi selezionati.
Sintassi
$(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 |
Provalo tu stesso - Esempi
Come interrompere le animazioni in coda.
Come completare immediatamente tutte le animazioni.