Fancybox modifiy. How to modify fancybox to stop a

2019-03-06 19:34发布

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

2条回答
姐就是有狂的资本
2楼-- · 2019-03-06 19:59

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.

查看更多
混吃等死
3楼-- · 2019-03-06 20:02

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

You can read more about the options in the fancybox docs

查看更多
登录 后发表回答