Skip to content

Thumbnails for Bento Lightbox Gallery #19

@machal

Description

@machal

Can we have different images for the thumbnail and for the lightbox view?

Instead of this…

<bento-lightbox-gallery></bento-lightbox-gallery>
<figure>
  <img
    src="https://picsum.photos/id/237/640/480"
    width="160" height="120" lightbox />
</figure>

… I need something like this:

<bento-lightbox-gallery></bento-lightbox-gallery>
<figure>
  <img
    src="https://picsum.photos/id/237/640/480"
    data-ligthbox-src="https://picsum.photos/id/237/1280/960"
    width="160" height="120" lightbox />
</figure>

This might be really useful from the perfomance point of view. Including large images into <img src=""> is not a good solution, even if we use lazy loading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions