Reputation: 709
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?
Upvotes: 6
Views: 6980
Reputation: 630529
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
Upvotes: 14