I’m trying to select several elements at once and fade them in on window load. The obvious
$('.home').delay(200).fadeIn(400);
didn’t work, and neither did
$('.home').each(function(){
$(this).delay(200).fadeIn(400);
});
What’s the best way to do this?
You need
$(window).readyinstead of$(window).loadinstead of document.load. And they need to be hidden first: http://jsfiddle.net/f3XhW/