TransitionEventInit Class

The initialization dictionary of TransitionEvent (https://drafts.csswg.org/css-transitions-1/#dictdef-transitioneventinit).

public sealed class TransitionEventInit : EventInit
Inheritance
EventInit TransitionEventInit

Constructors

NameDescription
TransitionEventInit()

TransitionEventInit()

TransitionEvent.cs
public TransitionEventInit()

No documentation is available.

Properties

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

Gets the transition that generated the event.

public CssTransition? Animation { get; init; }

Gets the elapsed time of the transition, in seconds.

public double ElapsedTime { get; init; }

PropertyName

TransitionEvent.cs

Gets the name of the transitioned property.

public string PropertyName { get; init; }

PseudoElement

TransitionEvent.cs

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

public string PseudoElement { get; init; }