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
Asked
Active
Viewed 160 times
-1
-
Are you using Fancybox 1 or 2 and how are you calling in Fancybox? – Adam Hughes Jul 08 '15 at 12:58
-
Fancy box version 2 – diana claudia Jul 08 '15 at 13:03
-
fancy box was not modified. It;s how it is standard – diana claudia Jul 08 '15 at 13:05
2 Answers
0
You need to add the option loop: false
when calling in fancybox.
You can read more about the options in the fancybox docs

Adam Hughes
- 2,197
- 20
- 31
-
I did that, but it stops only at last item in gallery number five. But i want to stop at last item on each gallery ( i have 5 galleries) – diana claudia Jul 08 '15 at 13:04
0
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.