unit
rad — CSS reference
A full revolution is 2π radians. Decimal literals approximate irrational angles. The unit follows the number without spaces. Negative rotations are valid in rotate(); prefer an explicit unit for zero because only some grammars accept unitless zero. Equivalent static orientations do not necessarily have equivalent animation paths.
Formal Syntax & Structure
css syntaxcss
transform: rotate(1.5707963267948966rad);Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>Numeric dimension lab</title><style>body {margin:0} .sample {height:12px;background:#006050}.sample {width:80px;height:24px;margin:40px} #a {transform:rotate(1.5707963267948966rad)} #b {transform:rotate(90deg)}</style><body><div id="a" class="sample"></div><div id="b" class="sample"></div></body></html>