HTML & CSS · Senior · Question 23 of 75

What does @property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; } enable?

Explanation

A regular CSS variable is just a string, so it jumps during animation. A property registered with @property (part of Houdini) has a type and therefore animates smoothly: that's how rotating conic gradients and animating individual color channels are done. You can also disable inheritance and set an initial value.

Further reading

Problem with a question

HTML & CSS · Senior · question 23

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz