@property

noun

say it: “AT PROP-er-tee” /æt ˈprɒpərti/

A CSS at-rule that registers a custom property: its type, whether elements inside inherit it, and its starting value.

What does @property do?

@property registers a custom property with a type, a default value and whether it inherits.

@property --progress {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

In a sentence

  • “I added an @property rule that says --angle is an angle starting at 0deg, so it could animate.”

Level: Master · More CSS terms at this level

Updated