▲ | gherkinnn 4 days ago | |||||||||||||||||||||||||||||||||||||
Nice. Currently I have to set CSS custom properties with JS to achieve the same effect. Wonderful to see how CSS gets a usable random function before JS does. | ||||||||||||||||||||||||||||||||||||||
▲ | noman-land 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
Maybe "usable" is your qualifier but what's wrong with Math.random()? | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||
▲ | ballenf 4 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
So now we can add a random data prop to a hidden dom element, then query that from JS. You know, to make your JS random function simpler. ;) | ||||||||||||||||||||||||||||||||||||||
|