Fancybox 2.0画廊模式的下一个和上一个方法 [英] Fancybox 2.0 Next and Previous Method for Gallery Mode

查看:97
本文介绍了Fancybox 2.0画廊模式的下一个和上一个方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Fancybox版本2.04,并且意识到仍然存在一些问题,但是我试图实现下一个和以前的方法来使用zoomIn ZoomOut功能,而不是使用Default slide down(我假设是slideDown,我认为确实很棒).

I'm using Fancybox version 2.04 and a realize there are still a couple issues but I am trying to implement the next and previous methods to use the zoomIn ZoomOut functionality instead of the Default slide down (which I'm assuming is the slideDown and I do think is awesome).

这是我正在使用的代码,但似乎无法正常工作,它关闭了图层,并且没有前进到画廊中的下一张图像.

Here's the code I'm using but it isn't seeming to work, it closes the layer and doesn't progress to the next image in the gallery.

  $('.zoom').fancybox({
    nextMethod: 'zoomIn',
    prevMethod: 'zoomOut',
    helpers : {
      overlay   : {
        css : {
          'background-color' : '#fff'
        }
      }
    }
  });

推荐答案

希望我能帮上忙,但是在尝试zoomIn + zoomOut时遇到同样的问题.

Wish I could help but I get the same problem when I try zoomIn + zoomOut.

我正在寻找一种方法来使覆盖层的父容器具有平滑的动画大小,这就是Fancybox V1的工作方式.虽然没有运气.我认为滑动效果(误称为弹性")太过引人注目. 无"设置太突然了,淡入淡出"设置在加载下一张幻灯片之前一直淡出,显示了背景内容.

I was searching for a way to make a smooth animated resize of the overlay's parent container, which was the way that Fancybox V1 worked. No luck though. I think the slide effect (misleadingly called 'elastic') is too showy. The 'none' setting is too abrupt, and the 'fade' setting fades out all the way before loading the next slide, showing the background content.

希望将来的版本中会提供更多选项.

Hopefully more options will be provided in future versions.

这篇关于Fancybox 2.0画廊模式的下一个和上一个方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆