@hejchristian@front-end.social
2026-04-28 20:22 UTC
@anatudor@mastodon.social
Wow 🤩 Blown away by this - I had to fiddle with the codepen by changing values here and there just to _try_ and understand what was going on.
I've clearly been sleeping on conic-gradients. That's so sleek, thank you for sharing!
Replies (1)
-
@anatudor@mastodon.social 2026-04-29 05:50
@hejchristian@front-end.social Over half a decade ago, I wrote an article about how they simplify background patterns https://css-tricks.com/background-patterns-simplified-by-conic-gradients/ In this case, the conic gradient doesn't start from the default (12 o'clock), but 90deg further in the positive (clockwise) direction (3 o'clock). It doesn't go around the default midpoint (at 50% 50%), but around a point that's a line thickness $l away from the top left corner of the background-size rectangle along both axes. By default, a background-size rectangle...