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
Progressive Image Loading Could be Refined #17
Comments
@dav-is thanks for opening the issue, we already have the provision for that. If we add '?placeholder to any image we import, it will present us with very small version of it. Let me add this to my todo of examples. Thanks |
I’m worried you misunderstood. The placeholder images in your prior examples are blurred in the image, not CSS. And there is no Transition once the full image is loaded. |
@dav-is ohh I see.. absolutely a transition would be good and yes I added the wrong example, if one uses This will give you a really small version of image. So we will then implement a transition with css! That would be more UX friendly. Will definitely implement that. |
Just gonna lob this in here as food for thought. https://images.guide/ |
Thanks @jhabdas that is very helpful. Thank you so much |
@dav-is @jhabdas check this PR and https://react-pwa.now.sh/progressive-image-rendering |
Progress makes perfect! Thanks for all you do @tirthbodawala |
I did some testing and I don’t see any transition or blur.
|
@dav-is Right, I haven't added any transaction, I have just used lightweight with placeholder. Can you please share any example where I can understand the functionality you are looking for ? |
picture {
filter: blur(25px);
transition: blur .5s;
}
picture.is-loaded {
filter: none;
} When the full picture is loaded, add the |
The first image loaded that is small could be smaller. If you don't blur it you could probably get away with it being smaller, then blur it with CSS. That way you could also add a transition for a smooth unblur.
The text was updated successfully, but these errors were encountered: