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.
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, the terminology is a bit loose here, A better name would be "carousel", but "slider" seems to be more popular term for "carousel" nowadays. See https://www.npmjs.com/search?q=slider
How I wish I had this a couple of weeks ago! I was doing a sliding image gallery and this would have been so much nicer than the terrible mess I put together.
FYI: I ran into some caching issue on safari where the js chunck would not load. Forcing a refresh (even though I never been to this site before) worked.
Speed is great, but how do the features compare to the other libraries mentioned?
This is definitely annoying, This is happening because I've added a logic that does not let the user trigger another transition if the slider is in mid-transition state.
Though I think a better approach would be to allow the user to trigger another transition and handle it gracefully.
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