CSS @property Playground

Mr. Harun wants his batik wheel to turn: write the @property rule, run a 1s transition, and getComputedStyle every frame shows whether your element and its…

Why it matters

Animating a gradient angle, a colour inside a gradient, a counter, a progress bar: they used to need JS. With @property it is all plain CSS, because the browser can interpolate the custom property.

The key idea

A custom property cannot be animated until it has a type

Common mistakes

Try it in this playground