AnimationEventInit Class

The initialization dictionary of AnimationEvent (https://drafts.csswg.org/css-animations-1/#dictdef-animationeventinit).

public sealed class AnimationEventInit : EventInit
Inheritance
EventInit AnimationEventInit

Constructors

NameDescription
AnimationEventInit()

AnimationEventInit()

AnimationEvent.cs
public AnimationEventInit()

No documentation is available.

Properties

NameDescription
AnimationGets the animation that generated the event.
AnimationNameGets the name of the animation.
ElapsedTimeGets the elapsed time of the animation, in seconds.
PseudoElementGets the pseudo-element the animation runs on (e.g. ::before), or the empty string.

Gets the animation that generated the event.

public CssAnimation? Animation { get; init; }

AnimationName

AnimationEvent.cs

Gets the name of the animation.

public string AnimationName { get; init; }

Gets the elapsed time of the animation, in seconds.

public double ElapsedTime { get; init; }

PseudoElement

AnimationEvent.cs

Gets the pseudo-element the animation runs on (e.g. ::before), or the empty string.

public string PseudoElement { get; init; }