Replies: 2 comments 2 replies
-
You should be able to attach an onload handler to it in the same way, because it forwards it to the native |
Beta Was this translation helpful? Give feedback.
2 replies
-
That makes sense! I’ll give this approach a go.
Thanks for the advice.
…On Thu, Apr 27 2023 at 3:42 pm, Matt Kane < ***@***.*** > wrote:
OK, got it. No, that's not somethign that would work out of the box. What
you could do is wrap it in another element and apply the background to
that. Then on load you can apply a class that animates the opacity to 1.
—
Reply to this email directly, view it on GitHub (
#211 (reply in thread)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AF7VYSYU4STQWR4BUOBZZATXDKATZANCNFSM6AAAAAAXLIIES4
).
You are receiving this because you authored the thread. Message ID: <ascorbic/unpic-img/repo-discussions/211/comments/5743903
@ github. com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey so Vercel Image component has an on load callback which my colleague used to achieve the blur image animation transition on load of the actual image here
https://leeds2023.co.uk/
Is there any way to achieve this with unpic?
Also it seems lazy loaded images waits until its into the viewport before loading, is it possible on faster connections to start loading the image once the browser is idle, and only lazy load as it comes into the viewport when the browser is doing other things?
You can see this on my site here no matter how long you wait at the top of the page you will always get a lazy load on images.
https://www.luckyduck.co/work/frontline-policies
Beta Was this translation helpful? Give feedback.
All reactions