Document: animationstart event

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

The animationstart event is fired when a CSS Animation has started. If there is an animation-delay, this event will fire once the delay period has expired. A negative delay will cause the event to fire with an elapsedTime equal to the absolute value of the delay (and, correspondingly, the animation will begin playing at that time index into the sequence).

Bubbles Yes
Cancelable No
Interface AnimationEvent
Event handler property onanimationstart

The original target for this event is the Element that had the animation applied. You can listen for this event on the Window interface to handle it in the capture or bubbling phases. For full details on this event please see the page on HTMLElement: animationstart.

Examples

This listens for the animationstart event and logs a message when it is fired:

document.addEventListener('animationstart', () => {
  console.log('Animation started');
});

The same, but using onanimationstart:

document.onanimationstart = () => {
  console.log('Animation started');
};

See a live example of this event.

Specifications

Specification Status Comment
CSS Animations Working Draft Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
animationstart eventChrome Full support 43Edge ? Firefox Full support 51IE ? Opera Full support 30Safari ? WebView Android Full support 43Chrome Android Full support 43Edge Mobile ? Firefox Android Full support 51Opera Android Full support 30Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

문서 태그 및 공헌자

이 페이지의 공헌자: wbamberg, mdnwebdocs-bot, estelle, mfuji09
최종 변경자: wbamberg,