Méthode jQuery stop()

❮ Méthodes d'effet jQuery

Exemple

Arrêtez l'animation en cours :

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

Définition et utilisation

La méthode stop() arrête l'animation en cours pour les éléments sélectionnés.


Syntaxe

$(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

Essayez-le vous-même - Exemples


Comment arrêter les animations en file d'attente.


Comment terminer toutes les animations immédiatement.


❮ Méthodes d'effet jQuery