Answer the question
In order to leave comments, you need to log in
How to separate gallery view from one to another using ImageLightbox.js?
To display photos, I use the ImageLightbox.js script .
Here are two galleries that I would like to separate viewing. At the moment, when you open, for example, the first photo and start scrolling, instead of two photos you see photos from the neighboring gallery.
<div class="gallery slider grab" data-autoplay="false" data-autoheight="true">
<figure>
<a data-imagelightbox="f" href="img/optimized/image1.png"><img data-src="img/optimized/image1.png" alt="Text"></a>
<a data-imagelightbox="f" href="img/optimized/image2.png"><img data-src="img/optimized/image2.png" alt="Text"></a>
</figure>
</div>
<div class="gallery slider grab" data-autoplay="false" data-autoheight="true">
<figure>
<a data-imagelightbox="f" href="img/optimized/image3.png"><img data-src="img/optimized/image3.png" alt="Text"></a>
<a data-imagelightbox="f" href="img/optimized/image4.png"><img data-src="img/optimized/image4.png" alt="Text"></a>
</figure>
</div>
Answer the question
In order to leave comments, you need to log in
Thank you, the Toaster community, for responding very quickly to questions that have arisen. I will recommend this wonderful site to all my friends and family. Newbies are answered so quickly here that I don’t even have time to write a question before the answer comes from the community.
Damn, at least you wrote something.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question