TLDR Web Dev · ARTICLES & TUTORIALS

THE “MOST HATED” CSS FEATURE: COS() AND SIN()

css-tricks.com18 min read

Summary from the TLDR Web Dev newsletter

CSS trigonometric functions, specifically `cos()` and `sin()`, were identified as the "Most Hated Feature" in the State of CSS 2025 survey. This article explains these functions by relating them to the unit circle and Cartesian coordinates, explaining how they can be used to calculate positions in circular and wavy layouts. The article then shows how `cos()` and `sin()` can be used to create damped oscillatory animations.