🚀I wrote a random() thing 🤭 do check it out. When I first heard about random(), I had no idea what to think of it. So, this blogpost is actually me trying to make sense of it and hopefully, me documenting this can help you make sense of it as well 😊 www.smashingmagazine.com/2026/10/embr...
Post
smashingmagazine.comEmbracing Playful Imperfection With The CSS random() Function — Smashing MagazineDesign systems thrive on consistency, so where does randomness fit in? Through playful demos of organic typography, bouncing letters, and splayed cards, Brecht De Ruyte shows how the new CSS `random()...
You are referring to the old spec that contains the old syntax. The correct one is here: drafts.csswg.org/css-values-5... You have probably missed the opportunity to play with element-scoped and property-scoped (I did the same mistake as well ...)
0 reposts4 likes
MDN got an update recently, and also has up-to-date info: developer.mozilla.org/en-US/docs/W...
developer.mozilla.orgrandom() CSS function - CSS | MDNThe random() CSS function generates a random value within a specified range, optionally limiting the possible values to step size intervals between those limits. It can be used when specifying a <leng...