You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to know if it's possible that the zoomed image size do not exceed the real image size so the zoomed image is not blurry when the the viewport is huge.
I use the data-zoom-src attribute to provide the HD image url and also widthand height attributes set to the low definition image sizes to prevent document layout shifts.
Thanks,
Ben
The text was updated successfully, but these errors were encountered:
Ok, I updated the sandbox with to examples: one with loading="lazy" and one without.
It seems to work as expected in both cases only with Chrome. With Firefox, the zoomed image doesn't respect the intrinsic image size. Using Safari, without loading="lazy", it works well but as soon as the attribute is added, the zoomed image is still the thumbnail.
Hi,
I'd like to know if it's possible that the zoomed image size do not exceed the real image size so the zoomed image is not blurry when the the viewport is huge.
I use the
data-zoom-src
attribute to provide the HD image url and alsowidth
andheight
attributes set to the low definition image sizes to prevent document layout shifts.Thanks,
Ben
The text was updated successfully, but these errors were encountered: