HTML ontransitionrun Event Attribute
Description
The ontransitionrun event attribute runs a script when a CSS transition is created, as soon as a transitioned property changes and before any transition-delay has passed.
The event is a TransitionEvent with the properties propertyName (the CSS property, for example "transform"), elapsedTime (in seconds, not counting transition-delay) and pseudoElement. A separate event fires for each transitioned property, so a transition on all that changes three properties fires three events; check event.propertyName to handle only one. Transition events bubble.
Syntax
<element ontransitionrun="script">
Values
- scriptThe name of the script to use when the event has been triggered.
Example
Browser Support
The following information will show you the current browser support for the HTML ontransitionrun event attribute. Hover over a browser icon to see the version that first introduced support for this HTML event attribute.
Desktop





Tablets & Mobile





