lazyload icon indicating copy to clipboard operation
lazyload copied to clipboard

can we fade in the images instead of just popup?

Open nabtron opened this issue 5 years ago • 2 comments

can we fade in the images instead of just popup?

nabtron avatar May 07 '19 08:05 nabtron

I would love having this feature enabled in 2.x. Just a simple fadeIn when images are loaded.

virgo79 avatar Jan 17 '20 15:01 virgo79

I use the following to fade in the images:

js

jQuery('img.lazy').on('load', function(){
  this.style.opacity = 1;
});
jQuery('img.lazy').lazyload();

css

img.lazy {    
     opacity: 0;
    transition: opacity .2s ease-in-out;
}

frankeymen avatar Feb 14 '20 12:02 frankeymen