Josh Comeau's interactive guide walks through CSS transitions

Josh Comeau has published a post on CSS transitions that serves double duty: it introduces the feature and then digs into the details of using it well. The piece is interactive throughout, which the article calls a real help in getting the concepts across.

One piece of advice singled out is about animating an element's position. The recommendation is to leave the original space the element occupied untouched, so the effect doesn't produce what Comeau calls "doom flicker." The author notes having built CSS Jitter Man to illustrate that same idea.

The demos are also worth a look from an authoring standpoint. Comeau writes the post in MDX, giving him Markdown and JSX together, so each demo can be a small one-off React component. A thread by Comeau shows off how valuable that setup can be.