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
%MINIFYHTMLf798d8bbade3c49380ba81b7258b00bc6%

Shares