
"No feature is truly "the worst" in CSS, right? After all, it's all based on opinion and personal experience, but if we had to reach a consensus, checking the State of CSS 2025 results would be a good starting point. I did exactly that, jumped into the awards section, and there I found it: the "Most Hated Feature," a title no CSS should have bear..."
"This shocks me, if I'm being honest. Are really trigonometric functions really that hated? I know "hated" is not the same as saying something is "worst", but it still has an awful ring to it. And I know I'm being a little dramatic here, since only "9.1% of respondents truly hate trigonometry." But that's still too much shade being thrown for my taste."
"I want to eliminate that 9.1%. So, in this series, I want to look at practical uses for CSS trigonometric functions. We'll tackle them in pieces because there's a lot to take in and I find it easiest to learn and retain information when it's chunked into focused, digestible pieces. And we'll start with what may be the most popular functions of the "worst" feature: sin() and cos()."
The State of CSS 2025 awards named CSS trigonometric functions the "Most Hated Feature." Only 9.1% of respondents reported truly hating trigonometry. The plan is to reduce that figure by demonstrating practical uses for CSS trigonometric functions in a multipart series. The first focus will be sin() and cos(), presented in focused, digestible pieces. A refresher on sin() and cos() explains that multiple definitions exist, with some being overly general and others overly academic. Clearer, practical explanations aim to show what sin() and cos() can do in CSS.
Read at CSS-Tricks
Unable to calculate read time
Collection
[
|
...
]