sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.5k stars 1.28k forks source link

how to open the gallery from link #142

Closed ghost closed 9 years ago

ghost commented 9 years ago

I would like to make the <ul> that contains the images hidden, and then lunch the gallery from a link. Is this possible?

ghost commented 9 years ago

I found a work around: `Open Gallert

` and `$('#lightGallery').lightGallery(); $("#open").click(function () { $('ul#lightGallery li:first').click(); });` Maybe there's another way to do this, but this works fine
clintongreen commented 9 years ago

Good idea, best one I've seen so far.

carasmo commented 7 years ago

Thank you, this helped a lot!