A
A
Artur Galyaev2021-02-13 08:46:35
JavaScript
Artur Galyaev, 2021-02-13 08:46:35

How to make infinite slider with variableWidth in Slick?

6027680eb018a077429965.png
Here is a slider, it is endless, it has 1 slide taking up half (2/4) and several 1/4
But when it reaches the end, this happens:
602767fa3567d785586999.png
Why is this happening?

{
        dots: true,
        arrows: true,
        infinite: true,
        swipeToSlide: true,
        speed: 800,
        slidesToShow: 1,
        slidesToScroll: 1,
        variableWidth: true,
        autoplay: false,
        cssEase: 'ease-in-out',
        dotsClass: 'main-dots'
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2021-02-13
@profesor08

And how should it happen? Three slides fit, the fourth didn't fit, everything is logical.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question