183 days ago · Tech · hide · Fediverse post

If anything looks wrong, read on the site! At my job at Useful Group, a need we often have is building carousels (or sliders, whatever name you prefer). While they are often overused (and badly used) around the web, they still have their very valid use cases. For those, we used to rely on third-party JS-based libraries like Slick, that while did their job well, still had some drawbacks that were annoying us: They usually build the carousels for you, which means you don’t have absolute control over it, or have to learn some of the inner workings of the library to style them how you want to; They are dependent on JavaScript, which means that if for any of a number of reasons JavaScript isn’t available (or just the library’s file failed to load), your carousel will be broken. It will not only not work but also look very broken, since the JS was responsible for the layout itself; Being JS-based, many don’t take advantage of the scroll momentum and performance that browsers have provided…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town