DEV Community


Discussion on: Ever thought of random numbers in CSS?

sergeyioffe profile image
Sergey Ioffe Author

It's e.g. when create a class for a design element that is likely to have varied sizes like a dashboard with sticky notes that aren't all the same size.
.random { width: rand(Npx,Mpx,t) } N=min, M=max, t=level (step) of randomization, etc.
Each time the page loads, the user has slightly another look.

Forem Open with the Forem app