Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Trigger the gallery with just one image #19

Closed
fayazara opened this issue Mar 24, 2020 · 2 comments
Closed

Trigger the gallery with just one image #19

fayazara opened this issue Mar 24, 2020 · 2 comments

Comments

@fayazara
Copy link

fayazara commented Mar 24, 2020

Is it possible to show just 1 thumbnail and when it is opened, they gallery will have multiple items then.

Or even trigger it with a button, called "Open Gallery" and this opens tha gallery

@lucaspulliese
Copy link
Owner

Hi @fayazara.

You just need to set the index of the gallery, then the gallery will be opened, just like this codepen:

https://codepen.io/lucaspulliese/pen/LYVgyzp

@fayazara
Copy link
Author

Thank you! This works

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants