D
D
Dmitry2018-05-22 16:17:21
JavaScript
Dmitry, 2018-05-22 16:17:21

Slides in navigation (slick) are leaving, how to fix?

I made two parallel sliders for navigation, as it should.
5b04169e8145a584175391.jpeg

<div id="popup" class="popup">
    <a href="javascript:void(0)" class="popupclose">X</a>
    <div class="pojpopimagesslid">
      <div><img src="<?php echo get_template_directory_uri() ?>/img/picturebig.jpg" alt="picbig"></div>
      <div><img src="<?php echo get_template_directory_uri() ?>/img/manl.png" alt="picbig"></div>
      <div><img src="<?php echo get_template_directory_uri() ?>/img/manr.png" alt="picbig"></div>
    </div>
    <div class="pojpopimagesslidnav">
      <div><img src="<?php echo get_template_directory_uri() ?>/img/picturebig.jpg" alt="picbig"></div>
      <div><img src="<?php echo get_template_directory_uri() ?>/img/manl.png" alt="picbig"></div>
      <div><img src="<?php echo get_template_directory_uri() ?>/img/manr.png" alt="picbig"></div>
    </div>
    <p class="popuptext">текст</p>
  </div>

<script>
  $(".openprojpoplink").click(function(){
    $(".popup").show();
    $(".pojpopimagesslid").slick({
      slidesToShow: 1,
      slidesToScroll: 1,
      arrows: true,
      asNavFor: '.pojpopimagesslidnav',
    });
    $(".pojpopimagesslidnav").slick({
      slidesToShow: 3,
      slidesToScroll: 1,
      asNavFor: '.pojpopimagesslid',
      focusOnSelect: true,
      arrows: false,
      centerMode: true
    });
  });
  $(".popupclose").click(function(){
    $(".popup").hide();
  });
</script>


But when scrolling the top slider, which is to the right and to the left, the bottom one also goes incomprehensibly.
5b0417f04e225126331011.jpeg
5b0417fe9b33b455272406.jpeg
5b0418069fb08976298565.jpeg

I need the bottom slider not to move at all, but I don’t understand how ((
If necessary, it’s all here - infovs51.beget.tech/projects

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sagrana, 2018-05-23
@aka_koren

What worked for me was transform: none!important; for .slick-track on slider-nav.
In your case it will be

.pojpopimagesslidnav .slick-track {
  transform: none!important;
}

It's a crutch, but it works)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question