korrents

korrents · piece

CSS vs. JavaScript

Josh Comeau · 26 May 2026

Read the piece on joshwcomeau.com ↗

2 korrents from this piece ↓

Josh Comeau did not write this page.

Every claim below was made in this piece, quoted word for word and numbered in the order the piece makes them, so you can read it there rather than take our word for it. The sentence above each quote is our reading of the claim, not their wording. Each quote was checked against a stored copy of the page at build time; where the two differ, the quote is the fact.

  1. CSS has become so powerful that there really aren't that many cases where we need to reach for an animation library these days; new APIs like View Transitions, linear(), and Animation Timeline make it possible to do all sorts of stuff without JavaScript.
  2. My honest opinion is that the tools in this second category aren't worth using. They come with all of the "main thread" baggage we've been seeing in this lesson, as well as bloating our JavaScript bundles, without really offering anything in return.

Keep reading