this post was submitted on 29 Aug 2025
214 points (95.3% liked)

Technology

74754 readers
2505 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
 

cross-posted from: https://programming.dev/post/36492805

Comments

you are viewing a single comment's thread
view the rest of the comments
[–] sem@lemmy.blahaj.zone 5 points 4 days ago (2 children)

I have always been intimidated by CSS. Is a random background color possible without JavaScript? Like https://notpurple.com/ ?

[–] dreadbeef@lemmy.dbzer0.com 12 points 4 days ago* (last edited 4 days ago)

How timely a question: https://webkit.org/blog/17285/rolling-the-dice-with-css-random/

tl;dr: CSS is getting genuine random for exactly that soon

[–] feef@lemmy.world 2 points 4 days ago* (last edited 4 days ago)

(Not my code)

https://codepen.io/beben-koben/pen/eYPNew

You might be able to use this idea and set the animation to 0 seconds.

On second thought I don’t think it’ll work.