vue-simple-lightbox
vue-simple-lightbox copied to clipboard
Support for thumbnails
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.