Vanilla-lazyload: Fade in effect

Created on 9 May 2017  Â·  8Comments  Â·  Source: verlok/vanilla-lazyload

Would it be possible to add a fade in effect and make it available via the api? The Tuupola plug-in uses:

effect : "fadeIn"

Alternatively is there a way of achieving this via the current api?

Most helpful comment

Just for the heck of it I created a pen out of the fade in demo: https://codepen.io/cfxd/pen/Germma

All 8 comments

Yes. There is a demo and a recipe. Just read the readme file or the website. You can find the demo under the demos folder.

Sorry I just realized there's no recipe and no link to the demos folder in the README file.
Here you go: https://github.com/verlok/lazyload/blob/master/demos/fade_in.html

The fade in here is delegated to CSS so it's much faster than a JS animation (which is what Mika's jQuery LazyLoad does).

You could change the fade-in to anything else just changing the CSS. :)

Great! Works well. Many thanks.

You're welcome 😊

Is it possible to fade background image in?

Psst: have you already starred this repo? All you need to do is to press the Star ★ button on the top right corner of the website. ;)

Just for the heck of it I created a pen out of the fade in demo: https://codepen.io/cfxd/pen/Germma

Hi! Thx for a nice lazy load plugin!
Is it possible though to somehow prevent the images already lazy loaded from fading in once again, once shown once again on another page? fx the logo, I'd like it to fade it once initially loaded upon visiting the site the first time, but once it's cached I don't want it to fade in on a new page that the user clicks on 😃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

givsta picture givsta  Â·  7Comments

danielLee0721 picture danielLee0721  Â·  3Comments

MrPropre picture MrPropre  Â·  7Comments

gerdneuman picture gerdneuman  Â·  8Comments

wzhscript picture wzhscript  Â·  8Comments