Fancybox modifiy. How to modify fancybox to stop at last item on each gallery? (gallery 1 gallery 2 etc) [duplicate]

家住魔仙堡 提交于 2019-12-03 00:11:14

问题


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.



来源:https://stackoverflow.com/questions/31293219/fancybox-modifiy-how-to-modify-fancybox-to-stop-at-last-item-on-each-gallery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!