AnimationPlaybackEvent Class
The event fired when the playback state of an animation changes: finish, cancel and remove (https://drafts.csswg.org/web-animations-1/#animationplaybackevent).
public sealed class AnimationPlaybackEvent : Event- Inheritance
EventAnimationPlaybackEvent
Constructors
| Name | Description |
|---|---|
| AnimationPlaybackEvent(string, AnimationPlaybackEventInit?) | Creates an event of the given type. |
AnimationPlaybackEvent(string, AnimationPlaybackEventInit?)
AnimationPlaybackEvent.csCreates an event of the given type.
public AnimationPlaybackEvent(string type, AnimationPlaybackEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| CurrentTime | Gets the current time of the animation that generated the event. |
| TimelineTime | Gets the current time of the timeline of the animation that generated the event. |
CurrentTime
AnimationPlaybackEvent.csGets the current time of the animation that generated the event.
public CssNumberish? CurrentTime { get; }TimelineTime
AnimationPlaybackEvent.csGets the current time of the timeline of the animation that generated the event.
public CssNumberish? TimelineTime { get; }