Método jQuery stop()

❮ Métodos de Efeito jQuery

Exemplo

Pare a animação atualmente em execução:

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

Definição e uso

O método stop() interrompe a animação atualmente em execução para os elementos selecionados.


Sintaxe

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

Experimente você mesmo - Exemplos


Como parar as animações enfileiradas.


Como completar todas as animações imediatamente.


❮ Métodos de Efeito jQuery