DEV Community

loading...

Discussion on: Explain Css variables Like I'm Five

Collapse
vuild profile image
Vuild

Name a thing:
--something:red;

Use it anywhere:
background:something;

Change the speed of this animation by altering the "length" at the top of the CSS:
codepen.io/vuild/pen/EGwKGX

Look through the CSS. Anywhere it says "length" will be replaced by that variable.