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

New Feature: Progressive blurry loading #211

Open
kingofwhales opened this issue Dec 10, 2017 · 3 comments
Open

New Feature: Progressive blurry loading #211

kingofwhales opened this issue Dec 10, 2017 · 3 comments

Comments

@kingofwhales
Copy link

Is it possible to do progressive blurry loading like this lib: vue-progressive-image ?

Lazy loading is nice but it would be even better to have blurry loading on top..

@janein
Copy link

janein commented Jan 3, 2018

I tried to achieve this effect and nearly got it working. There are just some little issues which prevent it from working perfectly: #217
Maybe you can give it a try and figure out whats wrong? Or maybe it works on your setup.

@service-paradis
Copy link

I know it is an old question, but this solution could be useful for those who want to achieve something like this.

I'm using webpack for a project. I configured "lqip-loader" for my images. This loader create a blurry version of your images.

Then, I use the blurry image as the loading image:

{
  src: img.src,
  loading: img.preSrc,
}

In order to ave a smooth transition between those 2 images, i'm using css filter:

img {
  filter: blur(25px);
  transition: all .2s;

  &[lazy=loaded] {
    filter: none
  }
}

@mirkosaugo
Copy link

hey @service-paradis thank you for ur suggestion, can you share ur nuxt.config.js config for this module?

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

4 participants