News for hackers. Stuff that matters.
Re:I'm Unsatisfied with Easing Functions by franciscop on Wednesday July 23, 2025 @10:49AM (#44659842)
I also didn't like when a new easing happened _while_ another easing was happening, which often felt very jerky. Had to do a bunch of calculus (derivatives) by hand and wrote a small library for it in JS:

https://github.com/franciscop/ola

Note: ola means (sea) wave in Spanish

Re:I'm Unsatisfied with Easing Functions by pahgawk on Wednesday July 23, 2025 @11:11AM (#44660118)
Thanks for sharing this library! Author of the post here, I'll definitely check out your implementation.
Re:I'm Unsatisfied with Easing Functions by franciscop on Wednesday July 23, 2025 @12:33PM (#44661082)
Thanks! From your article, you might not want/like my library since it's based on a single easing function. I used a cubic function to find out the interpolation values, and the derivative to make sure it's always smooth. The equation looks like this, it's on the source code:

https://www.wolframalpha.com/input/?i=x+%3D+2+*+t+%5E+3+-+3+...

If you wanted some more details please feel free to ping me (email through my website's resume, or Twitter) and I'll dig the handwritten equations.