Answer the question
In order to leave comments, you need to log in
Magnific popup separate galleries?
I use this plugin for popup windows and light box galleries.
dimsemenov.com/plugins/magnific-popup
I re-read everything and did not understand. How to share a gallery?
For example, in the cars section, only cars like 1 out of 30 cars, 2 out of 30 are scrolled.
For example, only motorcycles like 1 out of 30 cars, 2 out of 30 are scrolled through the motorcycle section.
in fancybox there is such an attribute called data-fanybox-group="" like
Answer the question
In order to leave comments, you need to log in
i did the grouping via jQuery
$.each
here is an example codepen.io/dimsemenov/pen/pvvpgJ
or so
jQuery('#carousel-links').each(function() { // the containers for all your galleries
jQuery(this).magnificPopup({
delegate: 'a', // the selector for gallery item
type: 'image',
gallery: {
enabled:true
}
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question