For example, I have a animation through 'animation-delay'. for 15 blocks. It is necessary that after playing the latest animation run the entire chain again. Is it possible to do something through js?
$.fn.extend({ animateCss: function (animationName) { var animationEnd = 'webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend'; this.addClass('animated ' + animationName).one(animationEnd, function() { $(this).removeClass('animated ' + animationName); }); } }); $(document).ready(function() { $(".show1").animateCss('fadeIn'); $(".show2").css('animation-delay', '.5s'); $(".show2").animateCss('fadeIn'); $(".show2").css('animation-delay', '1s'); }); <link href="http://daneden.imtqy.com/animate.css/animate.min.css" rel="stylesheet"/> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="show1"> Show1 </div> <div class="show2"> Show2 </div>