Detect being animated and end of animation state for animate.css with jQuery -
this question has answer here: animate.css - wait animation finish before continuing 2 answers i using animate.css animate few blocks on web page. <a href="#" class="clicktoanimate">click animate</a> <div class="div-to-animate"> content... </div> $('.clicktoanimate').click(function(direction){ $('.div-to-animate').addclass('animated fadein'); }); so animation. but want tasks when being animated , when animation done. so, check if being animated, used following condition if ($('.div-to-animate').hasclass('animated')) { // } which fine not cases. because animated class not being removed after transition. so, guess piece of puzzle need solve is: how remove animated class after animation completed. you can listen animationend event , remove ...