<atan>
A mathematical function that calculates the arctangent of a number. This is essential for calculating slope-based angles in CSS without needing JavaScript.
Syntax
/* Usage Example */
.triangle-path {
/* Sets an angle based on height/width ratios */
transform: rotate(calc(atan(0.75)));
}
<atan> Browser support
Widely available
Since
2023 92% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.
111+
108+
15.4+
111+