Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Slick Carousel smooth scrolling

I have been using the slick carousel for a while, but I was curious if it was possible to tweak the carousel to get a smooth scrolling effect, as the same effect you get when you scroll vertically on your phone (on a given web page fx.).

In other words, I want the slick carousel to scroll in a variable speed, have a continuously flow, and will eventually not automatically head back to the start of a carousel/element, when you are not touching the carousel anymore.

Thanks

like image 437
ChristopherMortensen Avatar asked Jan 28 '23 17:01

ChristopherMortensen


1 Answers

For Smooth/Continous Scrolling

$('.continuous').slick({ speed: 9000, autoplay: true, autoplaySpeed: 0, cssEase: 'linear', slidesToShow: 1, slidesToScroll: 1, variableWidth: true,

});

like image 125
Atif Tariq Avatar answered Jan 30 '23 10:01

Atif Tariq