A
A
Alibek Kulseitov2015-06-18 14:31:14
Lightbox
Alibek Kulseitov, 2015-06-18 14:31:14

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

1 answer(s)
A
andrey_o_v, 2015-07-06
@AlibekKulseitov

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 question

Ask a Question

731 491 924 answers to any question