1 global.AnimationEvent = class AnimationEvent extends Event implements AnimationEvent {
2 private _animationName: string;
4 private _elapsedTime: number;
6 private _pseudoElement: string;
8 constructor(type: string, animationEventInitDict: AnimationEventInit = {}) {
9 const { animationName = '', elapsedTime = 0, pseudoElement = '', ...eventInitDict } = animationEventInitDict;
10 super(type, eventInitDict);
12 this._animationName = animationName;
13 this._elapsedTime = elapsedTime;
14 this._pseudoElement = pseudoElement;
18 return this._animationName;
22 return this._elapsedTime;
26 return this._pseudoElement;