Comment

Comment by baxuz

This is actually a really good approach and a good proof of concept for an animation / easing technique. Reminds me a lot of Flickity:

https://metafizzy.co/blog/initial-demos/

https://metafizzy.co/blog/math-time-resting-position/

https://metafizzy.co/blog/particle-to-slider/

https://metafizzy.co/blog/flickity-begins/

Especially this demo: https://codepen.io/desandro/pen/myXdej

This technique isn't just useful for switches. Nor will you use a <canvas> element for a switch. Nor will you have 20 parallel requestAnimationFrame loops running on the entire site. Or intentionally broken elements. The site also doesn't have optimizations where the rendering stops once the delta is too small — or probably dozens more of small tweaks that could make this production ready.

The comments here show that people either haven't read the article and are making assumptions, or can't see the forest for the trees. Or are just simply so biased and cynical that they need to share their (unprofessional) opinion in order to appear smart.

Since when has HN turned into Reddit?

parent baxuz 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton