15 ms·
Very impressive! As I've hit my mid-life slide and (regressed|progressed) back to my youth-self, I've found myself just writing a bunch of apps and sites in ht
by bradly 1y ago
Very impressive!
As I've hit my mid-life slide and (regressed|progressed) back to my youth-self, I've found myself just writing a bunch of apps and sites in html and css and really enjoying it.
One thing I still would like to see cracked is a random-like number in pure CSS. You can almost us there with some of the math functions and browser attributes, but I haven't found anything reliable.
- menzoic 1y agoCan LLMs help?
- Cthulhu_ 1y agoCan they? I think it's weird that you ask a question (or, offer a possible solution in the shape of a question) without verifying your own assertion first. To answer your question, LLMs confirm you can't generate a random number in CSS.
- reverendsteveii 1y agoalas, it seems that just shouting "AI" at problems is the latest trend in people who don't build software acting as though they know how building software works.
- simonklitj 1y agoIs this a thing? https://medium.com/hypersphere-codes/randomness-in-css-b55a0845c8dd https://medium.com/hypersphere-codes/randomness-in-css-b55a0...
- bradly 1y agoUnfortunately that solution does not work on Firefox or Safari.
- rebane2001 1y agoyou can pretty easily get randomness for clickable stuff by animating the z-index of multiple objects
- bradly 1y agoInteresting! I'm not familiar with this approach and look forward to trying it. Do you think it can be used to set a var that can be used for generative colors?