기사 요소에 CSS3 전환 효과를 구현하고 있지만 이벤트 수신기 전환 종료은 jQuery가 아닌 순수한 JavaScript에서만 작동합니다.jQuery로 CSS3 전환 이벤트 리스너
// this works
this.parentNode.addEventListener('transitionend', function() {alert("1"); }, true);
// this does not work
$(this).parent().addEventListener('transitionend', function() {alert("1"); }, true);
누군가가 내가 잘못 뭐하는 거지 나를 설명 할 수 :
아래의 예를 참조하십시오? 첫 번째는 정말 (이 공급 업체 접두사를 요구해야하기 때문에 나는 그것을 의심) 작동하면
이$(this).parent().bind('transitionend', function() {alert("1"); });
완전한 호환성을 위해 공급 업체 접두사가 붙은 이벤트도 포함시켜야합니다. [http://blog.teamtreehouse.com/using-jquery-to-detect-when-css3-animations-and-transitions-end](http://blog.teamtreehouse.com/using-jquery-to-detect)를 참조하십시오. -when-css3-animations-and-transitions-end)를 참조하십시오. –