A
A
Andrey2021-10-22 17:03:48
fancyBox
Andrey, 2021-10-22 17:03:48

How to combine data-src with data-fancybox="gallery" in fancybox?

I made pop-up blocks on click with
this library This library has such a function as data-fancybox="gallery", which combines into a gallery
how to embed in data-fancybox="gallery" в dialog-content?
what would eg. if you open the first block, the arrows for switching to the second one appear, etc.
without changing the structure of the html markup, because this markup will be displayed in a cycle in php
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2021-10-22
@klekovkinandrey

Fancybox.bind("[data-fancybox]", {
  groupAll : true, // Group all items
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question