CSS, Javascript

CSS transition callback functions to run javascript using jQuery

Sometimes you want to allow a css transition to finish running before executing a block of javascript. This can be easily acheived using the “transitionend” and “webkitTransitionEnd” functions. I’m going to demonstrate using jQuery, but you can use the same approach without jQuery.

Click Me to start
Click Me to start