javascript - How to fade in images one by one? -
i have seen example using chaining settimeout this. not work indefinite number of images. .each function called on multiple images lead them fade in simultaneously. there functions .each available looping blocking in execution?
you can use jquery delay method:
$('img').each(function(i) { $(this).delay(i * 400).fadein(); });
Comments
Post a Comment