Skip to content

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

@arranf

Description

@arranf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions