Fancybox 2.0 Next and Previous Method for Gallery Mode

I am using Fancybox version 2.04 and realize there are still a couple of questions, but I am trying to implement the following and previous methods to use the ZoomIn ZoomOut feature instead of the default slidedown (I assume this is slideDown and I think this is awesome).

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

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

      

0


source to share


1 answer


Wish I could help, but I have the same problem when I try to scale + enlarge.

I was looking for a way to make a smooth animated size of the overlay parent container that worked the way Fancybox V1 worked. Bad luck. I think the slide effect (mistakenly called "elastic") is too effective. The "none" setting is too steep and the "fade" setting disappears completely before the next slide loads, showing the background content.



Hopefully more options will be provided in future versions.

0


source







All Articles