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
EventTransitionEvent
Constructors
| Name | Description |
|---|---|
| TransitionEvent(string, TransitionEventInit?) | Creates an event of the given type. |
TransitionEvent(string, TransitionEventInit?)
TransitionEvent.csCreates an event of the given type.
public TransitionEvent(string type, TransitionEventInit? transitionEventInitDict = null)Properties
| Name | Description |
|---|---|
| Animation | Gets the transition that generated the event. |
| ElapsedTime | Gets the time the transition has been running, in seconds. |
| PropertyName | Gets the name of the transitioned property. |
| PseudoElement | Gets the pseudo-element the transition runs on (e.g. ::before), or the empty string. |
Animation
TransitionEvent.csGets the transition that generated the event.
public CssTransition? Animation { get; }Property value
See also
ElapsedTime
TransitionEvent.csGets the time the transition has been running, in seconds.
public double ElapsedTime { get; }Property value
See also
PropertyName
TransitionEvent.csGets the name of the transitioned property.
public string PropertyName { get; }Property value
See also
PseudoElement
TransitionEvent.csGets the pseudo-element the transition runs on (e.g. ::before), or the empty string.
public string PseudoElement { get; }