This question already has an answer here:
I'm using fancybox plugin for my photo gallery. I have multiple galleries with more items (photos) and I want to know how to stop the slideshow when hits the last item on each gallery. My fancybox.js was not modified. Thanks
You need to add the option loop: false
when calling in fancybox.
You can read more about the options in the fancybox docs
I manage to resolve this issue so i post the answer: fancybox verifies gallerys with data-fancybox-group and i put on earch gallery a different data-facybox-group "name: Ex: gallery 1: "data-fancybox-group="thumb1"...... gallery 2: "data-fancybox-group="thumb2"..... gallery 3: "data-fancybox-group="thumb3"
It worked for me.
来源:https://stackoverflow.com/questions/31293219/fancybox-modifiy-how-to-modify-fancybox-to-stop-at-last-item-on-each-gallery