HTML DOM 애니메이션 이벤트
AnimationEvent 객체
CSS 애니메이션이 실행될 때 발생하는 이벤트는 AnimationEvent 객체에 속합니다.
AnimationEvent 속성 및 메서드
Property/Method | Description |
---|---|
animationName | Returns the name of the animation |
elapsedTime | Returns the number of seconds an animation has been running |
pseudoElement | Returns the name of the pseudo-element of the animation |
상속된 속성 및 메서드
AnimationEvent는 다음에서 모든 속성과 메서드를 상속합니다.
이벤트 유형
다음 이벤트 유형은 AnimationEvent 객체에 속합니다.
Event | Description |
---|---|
animationend | The event occurs when a CSS animation has completed |
animationiteration | The event occurs when a CSS animation is repeated |
animationstart | The event occurs when a CSS animation has started |