I'm trying to animate elements sequentially by using jQuery. The approach that I'm trying to accomplish is to add "animated fadeInDown" classes on each element that should be animated, with a 500 milisecond delay.
The problem that I'm experiencing is that jQuery (or if I use setTimetout function) will trigger all animations at the same time.
Here's my code:
$('.row-assets .asset').each(function(i) {
$(this).delay((i++) * 500).addClass('animated').addClass('fadeInDown');
});
What am I doing wrong?