jQuery stop() 메서드

❮ jQuery 효과 메서드

예시

현재 실행 중인 애니메이션 중지:

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

정의 및 사용

stop() 메서드는 선택한 요소에 대해 현재 실행 중인 애니메이션을 중지합니다.


통사론

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

직접 해보십시오 - 예


을 중지하는 방법입니다.


완료하는 방법.


❮ jQuery 효과 메서드