Fancybox modifiy. How to modify fancybox to stop a

2019-03-06 19:56发布

问题:

This question already has an answer here:

  • How to create separate Fancybox galleries on the same page? 4 answers

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

回答1:

You need to add the option loop: false when calling in fancybox.

You can read more about the options in the fancybox docs



回答2:

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.