vue-simple-lightbox icon indicating copy to clipboard operation
vue-simple-lightbox copied to clipboard

Support for thumbnails

Open haasted opened this issue 7 years ago • 0 comments

The list of thumbnails is currently generated with the following code:

<a :href="image.src" v-for="image,key in images">
    <img :src="image.src" alt="" :title="image.title" :class="image_class" />

Since the href and src attributes share the same configuration field, there is no option to use one version of an image as the thumbnail, and only opening the real version when a user clicks the thumbnail. The demo at http://simplelightbox.com/ uses a thumbnail for the img src attribute, thereby preventing downloads of large images that may not be needed.

For my specific case, it would mean the difference between automatically loading 5 100KB images or 5 1-1.5MB images.

haasted avatar Aug 17 '18 11:08 haasted