kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.54k stars 5.89k forks source link

infinite not working if slidesToShow: 1.X #3526

Open ghost opened 6 years ago

ghost commented 6 years ago

When infinite is set to true and autoplay is set to true, the slider cuts the first element and not the last one.

But i want to cut the last(next) element and not the first one.

When infinite is set to false the slider cuts the next element but autoplay is not working.

====================================================================


$('.class').slick({
            dots: false,
            arrows: true,
            slidesToShow: 4,
            slidesToScroll: 1,
            autoplay: true,
            autoplaySpeed: 1000,
            infinite: true,
            responsive: [
                {
                    breakpoint: 480,
                    settings: {
                        slidesToShow: 1.5,
                        arrows: false
                    }
                },
                {
                    breakpoint: 768,
                    settings: {
                        slidesToShow: 2.5,
                       arrows: false
                    }
                },
                {
                    breakpoint: 1024,
                    settings: {
                        slidesToShow: 3.5,
                        arrows: false,
                    }
                }
            ],
        });
====================================================================

Slick Slider Version: 1.9.0

can someone help me?
ghost commented 6 years ago

Does anyone have any ideas?