Fancy box - how to show slide shows from one thumbnail

My thumbnails are paginated so that on one page there are only 6 thumbs and about 4 pages (a total of 24 images in the category)

if I installed it on one of the pages, it just displays 6 related images on this page.

How can I use Fancybox to display a slide show of all 24 images?

Thank you very much in advance!

Richard

0
source share
1 answer

this is how i do it (but with a few)

/*Fotos de la galeria*/ var galPhotos = [{ href: '../img/galeria/fondo1.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }, { href: '../img/galeria/fondo2.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }, { href: '../img/galeria/fondo3.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }, { href: '../img/galeria/fondo4.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }, { href: '../img/galeria/fondo5.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }, { href: '../img/galeria/fondo6.jpg', 'nextEffect': 'fade', 'prevEffect': 'fade' }]; $('a#gallery').live('click', function() { $.fancybox(galPhotos); }); 

this would start fancybox with as many images as you put in the array

+2
source

Source: https://habr.com/ru/post/1440858/


All Articles