Reputation: 29208
I'm looking for an event, callback or other way to tell when a CSS3 transition completes.
Is this possible?
Upvotes: 8
Views: 675
Reputation: 3216
Listen for the transitionend event:
https://developer.mozilla.org/en/CSS/CSS_transitions#Detecting_the_completion_of_a_transition
Since it uses browser prefixes, you'll have to listen to several different versions of that event for different browsers.
Upvotes: 1
Reputation: 348992
Use the transitionend
event. Note that vendor-specific prefixes have to be added.
Upvotes: 5