banthagroup / fslightbox

An easy to use vanilla JavaScript plug-in without production dependencies for displaying images, videos, or, through custom sources, anything you want in a clean overlying box.
MIT License
351 stars 30 forks source link

Allow having captions and thumbnails at the same time #109

Open emiliemarchand opened 4 years ago

emiliemarchand commented 4 years ago

Hello! It would be nice to be able to see captions while showing the thumbnails. At the moment we can only see one or the other.

I tried displaying the thumbnails and then changing the opacity and position of the caption in css, but the style applies to all captions and not only the active one. Normally the active caption has the fslightbox-caption-active class, but when the thumbnails are shown the class is never set.

godbrain commented 3 years ago

Not only that but the captions piece seems very complicated. Can't we just have an array with src: and caption: for each image? That's how most work. Thanks

LeonSkrilec commented 3 years ago

+1 for this feature. Really need this so we can display image author and thumbs at the same time.

matthewroysl commented 2 years ago

Commenting here, as well, as this would be a nice addition to have both thumbs and captions at the same time!

matthewroysl commented 2 years ago

Hey all, I ended up extending the library to allow for the ability to have captions displayed in thumb mode. You can find it here: https://github.com/matthewroysl/fslightbox-thumb-captions