F
F
Fecorchik2018-02-23 15:25:39
css
Fecorchik, 2018-02-23 15:25:39

How to fix small menu in slick slider?

How to fix small menu in slick slider? When you click on the arrows or touch the scroll of the larger slider, the small one starts to leave the slider. It is necessary that when scrolling the larger one, the small one remains in its place.
5a9007d5348f6851459081.png

5a9007fb3f1af217963604.png

$('.pup-up-slider-big').slick({
  arrows:true,
  slidesToShow: 1,
  slidesToScroll: 1,
  fade: true,
  asNavFor: '.pup-up-slider-little'
});
$('.pup-up-slider-little').slick({
  slidesToShow: 5,
  slidesToScroll: 5,
  asNavFor: '.pup-up-slider-big',
  focusOnSelect: true
});


<div class="pup-up-slider-big">
                <img src="img/pup-up/1/silid1.jpg" alt="">
                <img src="img/pup-up/1/silid2.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt="">
              </div>
              <div class="pup-up-slider-little">
                <img src="img/pup-up/1/silid1.jpg" alt="">
                <img src="img/pup-up/1/silid2.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt="">
                <img src="img/pup-up/1/silid3.jpg" alt=""> 
              </div>
            </div>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question