Método jQuery stop()

❮ Métodos de efecto jQuery

Ejemplo

Detenga la animación que se está ejecutando actualmente:

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

Definición y uso

El método stop() detiene la animación que se está ejecutando actualmente para los elementos seleccionados.


Sintaxis

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

Pruébelo usted mismo - Ejemplos


Cómo detener las animaciones en cola.


Cómo completar todas las animaciones inmediatamente.


❮ Métodos de efecto jQuery