Using photoswipe, I want to be able to launch multiple galleries on a same page, without any thumbnails.
Based on this demo http://codepen.io/dimsemenov/pen/ZYbPJM , galleries are launched from a clic on a thumbnail. I don't want to display any thumbnails on the page, but I want to be able to trigger the selected gallery from a link (class="trigger-link') based on the markup in the snippet below.
How do I bind opening selected gallery on a link instead of the thumbnail, based on the codepen demo?
<article class="gallery">
<a class="trigger-link" href="">
<h1>Gallery 1</h1>
</a>
<div class="gallery__items">
<figure>
<img src="https://source.unsplash.com/random" data-size="1200x800">
</figure>
<figure>
<img src="https://source.unsplash.com/category/nature/weekly" data-size="1200x800">
</figure>
</div>
</article>
<article class="gallery">
<a class="trigger-link" href="">
<h1>Gallery 2</h1>
</a>
<div class="gallery__items">
<figure>
<img src="https://source.unsplash.com/dategory/city/daily" data-size="1200x800">
</figure>
<figure>
<img src="https://source.unsplash.com/category/nature/daily" data-size="1200x800">
</figure>
</div>
</article>