jQuery 지연() 메서드
예시
다른 <div> 요소 지연:
$("button").click(function(){
$("#div1").delay("slow").fadeIn();
$("#div2").delay("fast").fadeIn();
});
정의 및 사용
delay() 메서드는 대기열에 있는 다음 항목의 실행을 지연하도록 타이머를 설정합니다.
통사론
$(selector).delay(speed,queueName)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the delay Possible values:
|
queueName | Optional. Specifies the name of the queue Default is "fx", the standard effects queue |
직접 해보십시오 - 예
애니메이션을 지연시키는 방법.