<tan>

Calculates the tangent of an angle. Useful for complex geometric translations or rotations directly in CSS.

/* Usage Example */
.skewed-box {
  /* Uses tangent to calculate a precise skew based on a custom property angle */
  transform: matrix(1, 0, tan(var(--angle)), 1, 0, 0);
}
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+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC