just stumbled onto a breakdown comparing keyframes against various js animation libraries to see if there is a real
performance penalty for using script-based logic. it turns out there is some
serious nuance regarding how the browser handles these different strategies under load. i used to think
js was always slower but the results depend heavily on what u are animating. does anyone else find themselves sticking to
transition: transform 0.3s ease
by default just to stay safe? i am curious if anyone has actually seen a measurable difference in production environments when using heavy libraries.
link:
https://www.joshwcomeau.com/animation/css-vs-javascript/