← Back to context

Comment by bradly

9 months 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.

you can pretty easily get randomness for clickable stuff by animating the z-index of multiple objects

  • Interesting! 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?

Can LLMs help?

  • Can 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.

    • alas, 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.