access
lazyload
https://github.com/tuupola/jq.
Jquery
$(".lazyload-blog-selector").lazyload();
$(".lazyload-blog-selector").on("load",function(){
img.removeClass("lazyload-blog-selector");
});
HTML
<img data-src="" src="/images/lazyload.png" class="lazyload-blog-selector">
I use this way to lazyload
I think the principle of the code is that the video will be displayed as soon as it is finished, but I find that it will show directly , which has no effect. I would like to add an effect:
fade in fadeIn/fadeOut
, maybe / images/lazyload.png
fade out, or video chips fade in. Is this true? I don"t know where to start with his Jquery code.
then I found out that if I took off img.removeClass ("lazyload-blog-selector");
, he could do it all the same.