HTML ontransitionstart Event Attribute
Description
The ontransitionstart event attribute runs a script when a CSS transition actually starts moving, after its transition-delay has ended. Without a delay it fires at the same time as transitionrun.
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 ontransitionstart="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 ontransitionstart event attribute. Hover over a browser icon to see the version that first introduced support for this HTML event attribute.
Desktop





Tablets & Mobile





