N
N
Novamoscow2017-04-01 17:20:35
JavaScript
Novamoscow, 2017-04-01 17:20:35

How to add slick slider to popup?

There is a customized slider, I use a slick. You can see here

Long suffered, but set up. And then suddenly the customer wanted the picture to be enlarged and scrolled in the same way when clicked.

Is it possible to do this by Slick or connect magnificPopup so that it doesn't conflict with the ready-made slider.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2017-04-01
@Novamoscow

Set a lightbox on the slider

S
Sergey Goryachev, 2017-04-01
@webirus

I use LightSlider + LightGallery for similar tasks.

P
prodavec macdonalds, 2017-09-14
@prodavecmacdonalds

sliders create auxiliary slides, slideslider creates extra slides up to the first one, I solved this problem by forcibly removing the popup slider attribute and class (in my case it was fancybox) ugly crutch, so I usually write sliders myself or use cycle2

$('.slide__item.slick-slide').each(function(i, elem){
            if ($(this).attr('data-slick-index') < 0) {
                $(this).find('a').removeClass('fancybox-image-slider').removeClass('fancybox-modal').attr({
                    rel: ''
                });
            }
        });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question