AnimationEventInit Class
The initialization dictionary of AnimationEvent (https://drafts.csswg.org/css-animations-1/#dictdef-animationeventinit).
public sealed class AnimationEventInit : EventInit- Inheritance
EventInitAnimationEventInit
Constructors
| Name | Description |
|---|---|
| AnimationEventInit() |
AnimationEventInit()
AnimationEvent.cspublic AnimationEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| Animation | Gets the animation that generated the event. |
| AnimationName | Gets the name of the animation. |
| ElapsedTime | Gets the elapsed time of the animation, in seconds. |
| PseudoElement | Gets the pseudo-element the animation runs on (e.g. ::before), or the empty string. |
Animation
AnimationEvent.csGets the animation that generated the event.
public CssAnimation? Animation { get; init; }Property value
See also
AnimationName
AnimationEvent.csElapsedTime
AnimationEvent.csGets the elapsed time of the animation, in seconds.
public double ElapsedTime { get; init; }Property value
See also
PseudoElement
AnimationEvent.csGets the pseudo-element the animation runs on (e.g. ::before), or the empty string.
public string PseudoElement { get; init; }