12
0

CSS vs. JavaScript

22d 7m ago by programming.dev/u/codeinabox in webdev@programming.dev from www.joshwcomeau.com

One of the most common questions around animation performance is whether JS-based animations are slower than CSS-based ones. Should we always strive to use CSS transitions, or is it OK to use JavaScript animation libraries?

There’s a surprising amount of nuance to this question, and I think that the conventional wisdom isn’t quite right. In this post, we’re going to dig into this question and see the differences for ourselves!