luis-almeida / unveil

A very lightweight jQuery plugin to lazy load images
4.16k stars 676 forks source link

unveil each with delay? #112

Open Unit60 opened 8 years ago

Unit60 commented 8 years ago

Hi I'm new to JS and I have been trying to get each image to load with a sequence delay... some help? this is what I have so far http://codepen.io/unit60/pen/zqyRbm

$("img").unveil(-300, function() { $(this).each(function(i) { var self = this setTimeout(function () { $(self).css("opacity","1"); }, i*8000); }); });