0
5 초마다 jquery 애니메이션을 실행하려면 어떻게해야합니까?5 초마다 jquery 애니메이션 실행
이렇게하면됩니다.
$('.zoom_big').animate({opacity: 1},2000,functions()}{
$('.zoom_big').animate({opacity: 0},2000);
});
5 초마다 jquery 애니메이션을 실행하려면 어떻게해야합니까?5 초마다 jquery 애니메이션 실행
이렇게하면됩니다.
$('.zoom_big').animate({opacity: 1},2000,functions()}{
$('.zoom_big').animate({opacity: 0},2000);
});
당신은 javascript's setInterval()
사용할 수 있습니다
var t = setInterval(function(){ // run the following function
$('.zoom_big').animate({opacity: 1},2000,functions()}{
$('.zoom_big').animate({opacity: 0},2000);
});
},5000); // every 5000 milliseconds = 5 seconds
그것을 중지하려면 당신이 clearInterval()
clearInterval(t);
http://stackoverflow.com/questions/3549853/jquery-how-to- 사용할 수 있습니다 같은 이벤트 - 매 5 초 –
http://stackoverflow.com/questions/1301529/jquery-fade-with-loop-and-delay –