开发者

Lazy Load, Lazier Load.. Control Fade Speed?

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 second?

Is that possible?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜