Page 1 of 1

Fancybox Parameter

Posted: Thu Dec 17, 2015 9:19 am
by hpwehrli
Dear all

I have invested some (a lot :D ) hours to optimize the fancybox (Lightbox).
The following Parameters, copied to the Options of the Lightbox (Gallery Fancybox) will customise the out lock of the picture.

'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {return '<span id="fancybox-title-over">Bild ' + (currentIndex + 1) + ' / ' + currentArray.length + ' ... ' + title+ '</span>';}

Offcurse, you can change all the parameter :wink:

The description of the parameter you will find here:

An example of the result of the parameter above you will find here: or (The Start Page of the website).

Have fun and happy Christmas


PS: For English change in the tittleFormat "Bild" to "Image"

Re: Fancybox Parameter

Posted: Sun Dec 20, 2015 5:55 am
by ColinM
Nice work hp! I can see a LOT of work has gone into that!

What did you use to minimise the top layer on scroll down please?

oh, and a happy Christmas to you to! 8)

Re: Fancybox Parameter

Posted: Mon Dec 21, 2015 1:21 pm
by hpwehrli
Hi Colin

That is made with the top-slider from rz


Re: Fancybox Parameter

Posted: Tue Dec 22, 2015 4:04 pm
by adex1
Well done, this will be needed when WB11 is out.