I’m using supersized plugin http://buildinternet.com/project/supersized/ to obtain a fullscreen gallery.
It works fine itself, but I need to hide and show it only from a fancybox button and from an esc button. I’m using fancybox 2 and I want to implements fullscreen too, so I used supersized.
The question is: how can I hide supersized without compromising its behavior?
The answer is not simple as you think, because if you try to set ‘display: none’ to div#supersized, and other relative divs, when you display it the auto ‘fit’ of the images doesn’t work…
If you set ‘visibility: hidden’ it seems to work, but when I want to see the first image for the first time, the box which should have to display the image is completely white.
You can see my test site for example: http://provaschiavello.altervista.org/Projects/STARFISH%20SQUARE%20|%20PIAZZA%20VITTORIO
Any suggestions?
Here is the solution (or the workaround):
Set this global variable: first = true;
Creates this two utility functions:
And then use them to switch between supersized and your normal page.
NB: The argument of fullScreen (n) is the index passed to the supersized gallery.
Enjoy. 🙂