<script type="text/javascript"> $().ready(function(){ function animateNext(handle) { var $next = $(handle).next(); $next.fadeIn(500, function() { delayAnimation($next); }); } function delayAnimation(handle) { setTimeout(function() { animateNext(handle); }, 500); } $('p', '#container-a').hide().eq(0).fadeIn(500, function() { delayAnimation(this); }); }); </script>
Skąd wiadomo, że należy przestać wykonywać animacje i już nie ma więcej elementów?