Barrie Reader Barrie Reader - 1 year ago 149
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!

Answer Source

Or, something like this:

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


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


demo =>

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download