Definition
CSS Animations Module Level 1 defines AnimationEvent
[Exposed=Window]
interface AnimationEvent : Event {
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
readonly attribute CSSOMString animationName;
readonly attribute double elapsedTime;
readonly attribute CSSOMString pseudoElement;
};
This interface is extended in the following specifications:
- CSS Animations Module Level 2
[Exposed=Window] partial interface AnimationEvent { readonly attribute CSSAnimation? animation; };
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface AnimationEvent : Event {
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
readonly attribute CSSOMString animationName;
readonly attribute double elapsedTime;
readonly attribute CSSOMString pseudoElement;
readonly attribute CSSAnimation? animation;
};Methods and attributes that return objects implementing AnimationEvent
Referring specifications
- CSS Animations Module Level 2 refers to
AnimationEvent