728x90
반응형
var ani = document.querySelector(".ani");
ani.addEventListener("animationstart", function(e) {
console.log("시작");
}, false);
ani.addEventListener("animationend", function(e) {
console.log("종료");
}, false);
CSS 애니메이션 시작 종료 시점 이벤트
CSS 애니메이션 구동 시 자바스크립트에서 시작 종료 시점을 알 수 있다. html css div { width: 100px; height: 100px; background: red; position: relative; animation: mymove 2s linear forwards; animation-..
pilot376.tistory.com
728x90
반응형