Class AnimationPlaybackEvent
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The AnimationPlaybackEvent interface of the Web Animations API represents animation events.
[Value("AnimationPlaybackEvent")]
public class AnimationPlaybackEvent : Event
- Inheritance
-
AnimationPlaybackEvent
- Inherited Members
Remarks
As animations play, they report changes to their PlayState through animation events.
Constructors
AnimationPlaybackEvent()
public AnimationPlaybackEvent()
AnimationPlaybackEvent(string, AnimationPlaybackEventInit)
The AnimationPlaybackEvent() constructor of the Web Animations API returns a new AnimationPlaybackEvent object instance.
public AnimationPlaybackEvent(string type, AnimationPlaybackEventInit eventInitDict = null)
Parameters
typestringeventInitDictAnimationPlaybackEventInit
Remarks
-Web Animations API
-AnimationPlayBackEvent
-PlayState
-CustomEvent(string, CustomEventInit)
-Event(string, EventInit)
Properties
CurrentTime
The currentTime read-only property of the AnimationPlaybackEvent interface represents the current time of the animation that generated the event at the moment the event is queued. This will be unresolved if the animation was idle at the time the event was generated.
[Value("currentTime")]
public Union13? CurrentTime { get; }
Property Value
- Union13?
A number representing the current time in milliseconds, or
null.
Remarks
-Web Animations API
-AnimationPlayBackEvent
TimelineTime
The timelineTime read-only property of the AnimationPlaybackEvent interface represents the time value of the animation's AnimationTimeline at the moment the event is queued. This will be unresolved if the animation was not associated with a timeline at the time the event was generated or if the associated timeline was inactive.
[Value("timelineTime")]
public Union13? TimelineTime { get; }
Property Value
- Union13?
A number representing the current time in milliseconds, or
null.
Remarks
-Web Animations API
-AnimationPlayBackEvent
-AnimationTimeline