← Back to all articles

Josh W. Comeau

Creator of CSS for JavaScript Developers. Former engineer at Gatsby. Writes interactive tutorials on CSS and React.

https://www.joshwcomeau.com

Articles

Squash and Stretch

Have you ever heard of Disney’s 12 Basic Principles of Animation? In this tutorial, we’ll explore how we can use the very first principle to create SVG micro-interactions that feel way more natural an

Sneaky Header Blocker Trick

There is a lil’ UI detail on this blog. Most people don’t even notice it, but the ones who do often reach out, asking how on earth it works. It feels like it defies the rules of CSS! In this blog post

Sprites on the Web

In game development, it’s common to use spritesheets for animation, but this technique isn’t as widely used on the web. Which is a shame, because we can do some pretty cool stuff with sprites! In this

Springs and Bounces in Native CSS

CSS's linear() function enables physics-based animations natively, but has quirks. This post shares tips for using it effectively.

The Big Gotcha With @starting-style

@starting-style enables CSS transitions for enter animations, a capability previously only possible with keyframes, but its practical value is questionable.

Color Shifting in CSS

Browsers have limitations when animating colors through the rainbow. This tutorial explores the issue and shares workarounds for cycling background colors in CSS.

An Interactive Guide to SVG Paths

Learn how SVG paths work through this tutorial that demystifies the powerful but complex <path> element and its compact syntax.