Barrie Reader Barrie Reader - 7 months ago 83
Javascript Question

jQuery each() with a delay

So, I would like an element to fade in and wait half a second, then fade the next in etc...

My code:

$('.comment').each(function() {
}, 450).delay(500);

I'm obviously doing something really silly.... (I hope)... My question is: Is this even possible? if not - can anyone point me in the right direction?

Thanking you!


Or, something like this:

$.each($('.comment'), function(i, el){


       }, 450);
    },500 + ( i * 500 ));


demo =>