Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2016年8月.
AnimationEvent() コンストラクターは、アニメーションに関するイベントを表す新しい AnimationEvent オブジェクトを返します。
AnimationEvent の型名を表す文字列です。 大文字と小文字を区別し、ブラウザーでは animationstart, animationend, animationiteration のいずれかに設定されます。
options 省略可オブジェクトで、Event() で定義されているプロパティに加えて、以下のプロパティがあります。
animationName 省略可トランジションに関連付けられた animation-name の値を含む文字列です。遷移に関連付けられた CSS プロパティの値です。既定値は "" です。
elapsedTime 省略可float で、このイベントが発行されたときにアニメーションが動作していた時間(アニメーションが一時停止していた時間を除く)を秒単位で与えます。 animationstart イベントの場合、 elapsedTime は 0.0 です。ただし、 animation-delay に負の値を指定した場合は除きます。 この場合、イベントは elapsedTime に (-1 * delay) が含まれた状態で発行されます。既定で 0.0 となります。
pseudoElement 省略可文字列で、アニメーションを動作させる擬似要素の名前を含む、 "::" で始まる名前です。もしアニメーションが擬似要素上で動作せず、要素そのもの上で動作するる場合は、空文字列 "" を指定します。 既定では "" となります。
| CSS Animations Level 1 # dom-animationevent-animationevent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026年1月4日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.