Callback for CSS3 Transitions

Asked

Viewed 31 times

0

Is there any javascript or jQuery callback function for transitions in css3 objects?

  • CSS does not have callbacks. If the transition is done in javascript/jQuery this is possible. You can put the code in question and/or better explain what you want to do?

1 answer

2

Via Javascript you can use the event webkitTransitionEnd to determine when a transition ends. For example:

meuElemento.addEventListener( 
     'webkitTransitionEnd', 
     function( event ) { alert( "A transição terminou." ); }, false );

As far as I know there is no equivalent in CSS3 for this behavior.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.