views:

37

answers:

1

Normal lazy load plug in..

$(function() {          
    $("img").lazyload({
        placeholder : "img/grey.gif",
        effect      : "fadeIn"
    });
});  

Can i control the speed of the fadeIn aspect say 0.9 or 1 seconds..?

That possible..?

Many thanks for any help :)

+1  A: 

There's an effectspeed setting as well, for example:

$(function() {
  $("img").lazyload({ 
    placeholder : "img/grey.gif", 
    effect : "fadeIn", 
    effectspeed: 900 
  }); 
});

I don't have an API reference, as the site seems to be unstable at the moment, but you can see it used in the source here: http://www.appelsiini.net/projects/lazyload/jquery.lazyload.js

Nick Craver
100K `_O_` congrats
Harmen
@Harmen - thanks :)
Nick Craver
Brilliant thank you :)
Jezthomp
@user483430 - welcome :) be sure to [accept answers](http://meta.stackoverflow.com/questions/5234/how-does-accepting-an-answer-work)!
Nick Craver