What are CSS Angles?

You express angles as a number followed by a unit-for example, 360deg.

The list of supported angle units:

 

Unit Identifier Description

deg the angle in degrees (values are from 0deg to 360deg)

grad the angle in gradians (values are from 0grad to 400grad)

rad the angle in radians (values are from 0rad to 6.28rad)

turn the angle in complete turns (1turn is equal to 360deg)