Hacker News new | ask | show | jobs
by MNNTNK 1459 days ago
I've been pretty disappointed with existing slider libraries because of their horrendous impact on the browser's main thread, and they also cause layout shifts which is a total pain in the neck to get rid off - They do not provide any way to fix the layout shifts in a idiomatic way.

So, I decided to create a slider library that focuses purely on being as fast as possible but still pretty push fully featured and super customizable. The library I have created is 30x faster than slick, 15x faster than swiper - while still being 5x smaller than slick and 19x smaller than swiper in size.

Despite being so small and fast - it still has lots of features and customizability.

I've just released V1.0 - Do check it out

1 comments

You may need some sort of threshold to ignore scrolls that are mostly vertical. It's really hard to scroll the page on mobile as the slider prevents the default scroll unless the movement is perfectly vertical
Yeah, This is not good. This is happening because I've set `touch-action: none` CSS. It should be `touch-action: pan-y`

Edit: Fixed in V1.0.1