jQuery 애니메이션을 사용하고 있습니다. 사이트가 열리면 자동으로 애니메이션을 시작해야합니다. 이 jQuery 프로그래머에 Click 기능을 넣으십시오. 클릭 기능을 제거하고 싶습니다. 그러나 함수를 제거한 후에 모든 애니메이션이 중지됩니다.Jquery 클릭 이벤트 애니메이션
http://web.enavu.com/tutorials/curtains-opening-animation-with-jquery/
jQuery 애니메이션을 사용하고 있습니다. 사이트가 열리면 자동으로 애니메이션을 시작해야합니다. 이 jQuery 프로그래머에 Click 기능을 넣으십시오. 클릭 기능을 제거하고 싶습니다. 그러나 함수를 제거한 후에 모든 애니메이션이 중지됩니다.Jquery 클릭 이벤트 애니메이션
http://web.enavu.com/tutorials/curtains-opening-animation-with-jquery/
난 당신이에 대해 얘기하고 가정
// when user clicks inside the container...
$('.curtain_wrapper').click(function(){
//..animate the description div by changing it's left position to it's width (but as negative number)...
$(this).children('.description').animate({'left': -1*$(this).width()});
//...animate the 2 curtain images to width of 50px with duration of 2 seconds...
$(this).children('img.curtain').animate({ width: 50 },{duration: 2000});
//...show the content behind the curtains with fadeIn function (2 seconds)
$(this).children('.content').fadeIn(2000);
});
이 each
의 단어 click
을 변경해보십시오 :
$('.curtain_wrapper').each(...
그냥 실제 코드에 $('.curtain_wrapper').trigger('click');
를 추가!
그리고 기사별로 DOM 준비가 된 "래퍼"에 있는지 확인하십시오. – James