H
H
helga1123582018-11-23 12:36:54
Slider
helga112358, 2018-11-23 12:36:54

Why does slick slider jump across slides?

slick slider, center-mode, slidesToScroll: 1, infinity: true, but it either scrolls to the floor of the slide, then reaches the last one and rewinds. Tell me what could be the problem?

$(document).ready(function(){
      $('#products_slider').slick({
        autoplay: false,
    dots: false,
    infinite: true,
    arrows: true,
    slidesToShow: 6,
    slidesToScroll: 1,
    variableWidth: true,
    responsive: [
        {
          breakpoint: 1200,
          settings: {
           	slidesToShow: 4,
           	variableWidth: true,
           	centerMode: true
          }
        },
        {
          breakpoint: 992,
          settings: {
          	slidesToShow: 4,
          	variableWidth: true,
            centerMode: true
          }
        },
        {
          breakpoint: 768,
          settings: {
            slidesToShow: 1,
            variableWidth: true,
            centerMode: true
          }
        },
        {
          breakpoint: 576,
          settings: {
            slidesToShow: 1,
            variableWidth: true,
            centerMode: true
          }
        }
      ]
    })
      });

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