AI CSS Animations

Hairline Animations: Isometric Line Art in CSS

60 isometric hairline animations: objects drawn in one constant thin stroke on a 2:1 grid, white faces hiding the lines behind them, one accent color, and motion that settles like a spring. Inline SVG and CSS you can paste anywhere.

How to use these hairline animations

Open any piece and copy the HTML and CSS. The drawing is inline SVG, so there are no image files to host. Each snippet's classes are prefixed with its own name, so several can share a page.

Set --hln-color to change the one accent and --hln-size to scale the panel. Strokes use vector-effect: non-scaling-stroke, so the hairline stays the same thin weight at every size, which is what makes the style read as precise.

The rules of the style: 2:1 isometric, one stroke weight, faces filled white and drawn back to front so near objects hide far lines, a single accent per frame, and motion that moves once and settles. Every snippet ships with a prefers-reduced-motion rule that holds the final frame.

Want a whole hairline film instead of a loop? The isometric hairline prompt gives Claude the full style to build one.

Frequently asked questions

What is a hairline animation?

Isometric line illustration in motion: every object drawn with the same thin stroke on a 2:1 grid, white faces that hide the lines behind them, and one accent color. It reads as calm and precise, which is why product and infrastructure teams use it for explainers.

How do I keep the line weight constant when the SVG scales?

Put vector-effect: non-scaling-stroke on every shape. The stroke width is then measured in screen pixels, not in viewBox units, so a small icon and a full-width hero share one hairline.

How do I draw isometric shapes in SVG?

Use a 2:1 dimetric grid: a point (x, y, z) lands at screen (x - y, (x + y) / 2 - z). Each box is three polygons, top, left and right, filled white and drawn from back to front.

Can Claude make hairline animations for me?

Yes. Paste the isometric hairline prompt into Claude Code for a full explainer film, or copy any snippet here and ask Claude to adapt the objects to your product.