web api interface
TransitionEvent
The TransitionEvent interface represents events providing information related to transitions.
Constructor
TransitionEvent()- : Creates a
TransitionEventevent with the given parameters.
- : Creates a
Instance properties
Also inherits properties from its parent Event.
animationRead only- : A
CSSTransitionread-only property containing the animation associated with the event.
- : A
propertyNameRead only- : A string containing the name CSS property associated with the transition.
elapsedTimeRead only- : A
floatgiving the amount of time the transition has been running, in seconds, when this event fired. This value is not affected by thetransition-delayproperty.
- : A
pseudoElementRead only- : A string, starting with
::, containing the name of the pseudo-element the animation runs on. If the transition doesn’t run on a pseudo-element but on the element, an empty string:''.
- : A string, starting with
Types of TransitionEvent
transitioncancel- : An
Eventfired when a CSS transition has been cancelled.
- : An
transitionend- : An
Eventfired when a CSS transition has finished playing.
- : An
transitionrun- : An
Eventfired when a CSS transition is created (i.e., when it is added to a set of running transitions), though not necessarily started.
- : An
transitionstart- : An
Eventfired when a CSS transition has started transitioning.
- : An
Instance methods
Also inherits methods from its parent Event.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
- Using CSS transitions
- CSS properties:
transition,transition-delay,transition-duration,transition-property,transition-timing-function - CSS at-rules:
@starting-style