Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS3 random number Reply To: CSS3 random number

#148207
Tim Pietrusky
Participant

It’s now possible to use the random() SCSS function:

.foo {
  height: random(5) + em;
  width: random(10 / 2) + 1 + em;
}

http://codepen.io/TimPietrusky/pen/CcEai