Using fancybox + fullscreen option

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 15:30:52

The following steps will do what you're looking for:

  1. See the following URL to learn how to add a custom button to Fancybox: Adding custom buttons to jQuery's fancybox. It will take a bit of effort but it does work.
  2. When first showing the Fancybox, hook the custom button to launch fullscreen mode. Use the Supersized plug-in.
  3. The div used to show the Supersized images will be hidden on the page and you'll show the Supersize div when launching fullscreen.
  4. Add a "close" button to the Supersized div and hide the div when clicked

The above steps will do it. There is a bit of customization required for both Fancybox and Supersized but you will be able to achieve your desired effect.

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