Doing maths in CSS

5 months ago by codeinabox to c/css

sin(), cos(), atan2() landed in CSS in 2023. You can now place elements in circles, arcs, and spirals with pure CSS, no JavaScript, no libraries. Here's how the math works.
css
css

@programming.dev

login for more options
847
363
88

go to feed...