TransitionEvent Class

The event fired by the CSS transitions: transitionrun, transitionstart, transitionend and transitioncancel (https://drafts.csswg.org/css-transitions-1/#interface-transitionevent).

public sealed class TransitionEvent : Event
Inheritance
Event TransitionEvent

Constructors

NameDescription
TransitionEvent(string, TransitionEventInit?)Creates an event of the given type.

TransitionEvent(string, TransitionEventInit?)

TransitionEvent.cs

Creates an event of the given type.

public TransitionEvent(string type, TransitionEventInit? transitionEventInitDict = null)

Properties

NameDescription
AnimationGets the transition that generated the event.
ElapsedTimeGets the time the transition has been running, 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; }

Gets the time the transition has been running, in seconds.

public double ElapsedTime { get; }

PropertyName

TransitionEvent.cs

Gets the name of the transitioned property.

public string PropertyName { get; }

PseudoElement

TransitionEvent.cs

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

public string PseudoElement { get; }