kenwheeler / slick

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

speed property not working properly #3846

Open Mobashir1995 opened 5 years ago

Mobashir1995 commented 5 years ago

I want to make a news ticker with slick slider, where all of the news will scroll smoothly at a constant speed continiously. So, I used the following option:

$('.slick-news-ticker').slick({ dots: true, infinite: true, speed: 2000, respondTo: 'container', cssEase: 'linear', autoplay: true, autoplaySpeed: 0, variableWidth: true, });

But I found if item length is not same then items speed are not same for all of the items, See the demo from codepen: https://codepen.io/mobashir/pen/LYPQYzY

You will see that speed is different if items texts are not same.

Is there any way so that I can use same speed for all of the items and items speed will not depend on the length of the items?

Please, help me, I've tried by many ways but can't find any solution.

ErikaNakamura commented 4 years ago

Is it a specification that must use slick.js?