Jquery Detect When CSS3 Animations and Transitions End
elem.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) {
// code to execute after transition ends
});
elem.one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(e) {
// code to execute after animation ends
});