Slick carousel right to left

前端 未结 5 1659
有刺的猬
有刺的猬 2021-02-05 23:18

I\'ve setup slick carousel to continuously scroll, however I need to to scroll in the oposite direction. Adding the RTL option didn\'t seem to work.

Fiddle here (current

5条回答
  •  失恋的感觉
    2021-02-06 00:03

    Change the slidesToScroll to a -1 (it will change the slide direction)

     $(function(){
        $('.slider').slick({
           speed: 10000,
           autoplay: true,
           autoplaySpeed: 100,
           cssEase: 'linear',
           slidesToShow: 1,
           slidesToScroll: -1,
           variableWidth: true
    
        });
    });
    

提交回复
热议问题