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

Replaces Art Directed Image Using Picture with Full Size Image #12

Open
arranf opened this issue Aug 31, 2023 · 0 comments
Open

Replaces Art Directed Image Using Picture with Full Size Image #12

arranf opened this issue Aug 31, 2023 · 0 comments

Comments

@arranf
Copy link

arranf commented Aug 31, 2023

In my use case I use the <picture> element, which allows various <source> images that can be art directed for breakpoints.

To integrate zoom.ts I've added a data-src to the fallback image of the <picture> element pointing to the highest resolution image. This functions well until the image is zoomed in. When zoomed out, the image is replaced with the data-src value which is no longer art directed.

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

1 participant