bento icon indicating copy to clipboard operation
bento copied to clipboard

Thumbnails for Bento Lightbox Gallery

Open machal opened this issue 2 years ago • 0 comments

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.

machal avatar Aug 19 '22 06:08 machal