3 ms·
Neat, one of the best tricks in the creadev toolbox! ;) Shameless plug: https://github.com/titoasty/zmooth https://github.com/titoasty/zmooth I just published
by titoasty 4y ago
Neat, one of the best tricks in the creadev toolbox! ;)
Shameless plug: https://github.com/titoasty/zmooth https://github.com/titoasty/zmooth
I just published a JS library to easily make smooth interpolations, just by setting a "to" value (after doing it by hand for years)
I hope you'll find it useful!
- chankstein38 4y agoPlease don't make it easier for people to lerp scrolling and other things that shouldn't be lerped. It's annoying and unresponsive feeling when overused.
- ianbutler 4y agoWell since it's a general library others can use it how they see fit. Discouraging someone for a small personal dislike like this is pretty bad form imo.
- chankstein38 4y agoCheck the comments, it's not a small personal dislike it seems pretty ubiquitous. Simply trying to make sure it's well known that there seems to be a consensus that lerping can be used incorrectly to the detriment of user experience. It'd be nice if libraries were on board with that too. And, to be fair, self promotion in an HN comment thread about a topic is bad form too. I know you're not the OC but the point seems fair.
- titoasty 4y agoSo you're implying I am responsible for the "bad" things people will make with this (unknown) library. That I literally use for my everyday job for functionalities clients ask for. I stated that I use it to make my life easier and so I just shared it. "things that shouldn't be lerped" are a subjective/UX responsibility. As a creadev I try to propose good practices but I don't often have the final word. (IMHO "lerp" scrolling is a truly horrible experience)