-1

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

Adrian Cid Almaguer
  • 7,815
  • 13
  • 41
  • 63

2 Answers2

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.