This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The TransitionEvent interface represents events providing information related to transitions.
TransitionEvent()Creates a TransitionEvent event with the given parameters.
Also inherits properties from its parent Event.
TransitionEvent.propertyName Read only
A string containing the name CSS property associated with the transition.
TransitionEvent.elapsedTime Read only
A float giving the amount of time the transition has been running, in seconds, when this event fired. This value is not affected by the transition-delay property.
TransitionEvent.pseudoElement Read 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: ''.
TransitionEvent
transitioncancelAn Event fired when a CSS transition has been cancelled.
transitionendAn Event fired when a CSS transition has finished playing.
transitionrunAn Event fired when a CSS transition is created (i.e., when it is added to a set of running transitions), though not necessarily started.
transitionstartAn Event fired when a CSS transition has started transitioning.
Also inherits methods from its parent Event.
| Specification |
|---|
| CSS Transitions> # interface-transitionevent> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
TransitionEvent |
27 | 14 | 23 | 15 | 76 | 27 | 23 | 15 | 76 | 2.0 | 4.4 | 76 |
TransitionEvent |
272–71 | 12 | 4 | ≤12.1 | 74 | 2718–71 | 4 | ≤12.1 | 73 | 2.01.0–10.0 | 4.44.4–71 | 73 |
elapsedTime |
2 | 12 | 4 | ≤12.1 | 6 | 18 | 4 | ≤12.1 | 6 | 1.0 | 4.4 | 6 |
propertyName |
2 | 12 | 4 | ≤12.1 | 6 | 18 | 4 | ≤12.1 | 6 | 1.0 | 4.4 | 6 |
pseudoElement |
2 | 79 | 23 | 15 | 6 | 18 | 23 | 14 | 6 | 1.0 | 4.4 | 6 |
transition, transition-delay, transition-duration, transition-property, transition-timing-function
@starting-style
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent