So I have a gallery of images, and a few links to it. Something like that
<a href="/images/1.jpg" rel="1">title</a>
<a href="/images/1.jpg" rel="1">link to first image</a>
<a href="/images/2.jpg" rel="1">link to second image</a>
<a href="/images/3.jpg" rel="1">link to third image</a>
This is cause first image to duplicate in fancybox. Like this: http://filebeam.com/2dec41a1820f2525f040424578c4421c.jpg
How can I make a multiple links to the same object without duplications?
trigger element
feature, simply usedata-fancybox-trigger
attribute with the value of fancybox group name - codepen.io/fancyapps/pen/VGoRqO?editors=1010 – Baribaric