T
T
Tutucu2019-07-20 14:56:54
JavaScript
Tutucu, 2019-07-20 14:56:54

How to scroll the slider 2 slides forward in the Slick slider carousel?

Hello, there is a carousel on the slick slider, you need to scroll 2 slides forward / backward. Now I did it like this:

$('.works-slider').slick('slickGoTo', $('.works-slider').slick('slickCurrentSlide') + 2, true);

But the problem is that the scrolling animation breaks, the slides start to twitch.
Is there a way to do double scrolling like this?
$('.works-slider').slick('slickNext');
$('.works-slider').slick('slickNext');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Khryagin, 2019-08-04
@podkudahka

$('.slider').slick({
    slidesToScroll: 2
  });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question