views:

348

answers:

1

Hi

Is it possible to get a notification (like callback) when a CSS transition has been completed?

-pom-

+6  A: 

I know that Safari implements a webkitTransitionEnd callback that you can attach directly to the element with the transition.

Their example (reformatted to multiple lines):

box.addEventListener( 
     'webkitTransitionEnd', 
     function( event ) { 
         alert( "Finished transition!" ); 
     }, false );
Doug Neiner
Thanks Doug, that did it.
Pompair