Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can we fade in the images instead of just popup? #436

Open
nabtron opened this issue May 7, 2019 · 2 comments
Open

can we fade in the images instead of just popup? #436

nabtron opened this issue May 7, 2019 · 2 comments

Comments

@nabtron
Copy link

nabtron commented May 7, 2019

can we fade in the images instead of just popup?

@virgo79
Copy link

virgo79 commented Jan 17, 2020

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

@frankeymen
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants