Readit News logoReadit News
globie · 10 months ago
Without a doubt the most impressive thing I've seen with CSS.

This immediately brought "A Single Div"[0] to mind, which stood as the coolest CSS demo I'd seen for... 11 years!

This one takes the cake. I'll be pouring over it. Thanks!

[0]: https://a.singlediv.com/

ericrosedev · 10 months ago
have you seen this modern marvel? https://diana-adrianne.com/purecss-lace/
qwertox · 10 months ago
Incredible. I was so skeptical that I went in on the neckruff and from there to a lacetop, it's really all generated based on background-image but without using images but gradients of specific colors, as well as box-shadows and the like.
ryukoposting · 10 months ago
Wow, Dark Reader absolutely mutilated her.
lelandfe · 10 months ago
Wow, mobile Safari hates this. Zooming in and scrolling around crashes the page constantly.

Deleted Comment

owjofwjeofm · 10 months ago
this is my favorite one one I've seen: https://lyra.horse/css-clicker/
koynoyno · 10 months ago
These were 1852 seconds well spent. If you don't hate clickers, try this one, it was definitely made with love.
i_am_a_peasant · 10 months ago
latest in my long list of poor life choices, not going to bed at 2 AM because I'm waiting to reach 10 mil views :)))))
Groxx · 10 months ago
that endgame is absolutely perfect
marky1991 · 10 months ago
Wierd, posting the last blog post crashed firefox.
mikeponders · 10 months ago
Wild, got me hooked!
kataqatsi · 10 months ago
I had the honor of seeing her give a talk. She also has a lot of other css projects that are awesome.

https://lynnandtonic.com/work/

Also love seeing Phoenix devs mentioned!

hbn · 10 months ago
Damn, that website is great on its own and it turns out she redesigns/rewrites it every year to learn new web technologies.

https://lynnandtonic.com/archive/

Got this bookmarked to click around for inspiration in my free time.

Waterluvian · 10 months ago
So many of these look deliciously interactive but aren’t. Is that because I’m on mobile or do they not do anything?
gs17 · 10 months ago
I don't think any on the first page are interactive. There might be a few on the next page of it (I only found one where a pen changes color on hover).
matrix2596 · 10 months ago
poring over it or pouring your attention :)
globie · 10 months ago
My bad, I forgot I'm a liquid. It's too late to edit, but s/po\w*/poured over/ anyway :)
shultays · 10 months ago
but they are all individual divs
benjaminaster · 10 months ago
Hello people, author here!

Some comments on this from my side:

- You people totally overwhelmed my website... I use(d) Firebase static hosting because it's completely free and super simple, which reached the 10 GB monthly limit now. I changed to Cloudflare in the meantime, but it'll need some time for the DNS records to update. IN THE MEANTIME, PLEASE USE THE GITHUB PAGES LINK INSTEAD: https://benjaminaster.github.io/CSS-Minecraft/

- I made this almost three years ago now, to try out the limits of what's possible with pure CSS, and to test out the then-new CSS :has() selector.

- This project never got much traction until now, so I never bothered to write about how it works. Simon Willison now already wrote a blog post about it, so I guess I don't have to anymore... https://simonwillison.net/2025/May/26/css-minecraft/

- For the best experience, please view this on a desktop browser, either Chromium-based or Firefox.

- The source code is at https://github.com/BenjaminAster/CSS-Minecraft. The "index.pug" and "main.scss" files contain the actual source code; the rest is mostly just the compiled output.

- Here is a video of me building a house with it: https://www.youtube.com/watch?v=OH8-Y9frP5k

mudkipdev · 10 months ago
This was criminally underrated, great job
simonw · 10 months ago
This is fiendishly clever, and really quite elegant.

I made some of my own notes on how this works here: https://simonwillison.net/2025/May/26/css-minecraft/

johnisgood · 10 months ago
This is how CSS CAPTCHAs are made (for Tor websites), and sign up / login modals, and many other stuff.
cmrx64 · 10 months ago
good write up, thanks. talk about a combinatorial explosion!

Deleted Comment

Dead Comment

assimpleaspossi · 10 months ago
But highly impractical and far beyond what CSS should be used for.
sd9 · 10 months ago
Obviously...

That's why it was done

For fun and to see whether it could be done

popcorncowboy · 10 months ago
If you really wanna get your blood boiling how about some Doom with HTML checkboxes - https://healeycodes.com/doom-rendered-via-checkboxes
skulk · 10 months ago
If anyone's wondering how it manages the state, a quick peek into the source code shows that it uses radiobuttons and the HTML contains all the blocks you could ever possibly place.
johnh-hn · 10 months ago
If anyone is equally curious how the camera state works, it looks like the camera is controlled by running animations when a button is in its :active state and pausing them otherwise.
globie · 10 months ago
I... you're right. I was wondering why the world was only 9x9x9, there's 46k lines showing each block can have air, stone, grass, dirt, log, wood, leaves, or glass.

I kind of like it.

donatj · 10 months ago
Radio buttons and checkboxes really are magic when it comes to doing neat things in pure CSS. We used to have a lot of neat stuff like pure html/css tabs and toggles but they didn't pass an accessibility audit.
90s_dev · 10 months ago
That is the most hacky solution I may have ever seen in a CSS demo. I love it.
movedx01 · 10 months ago
It's always radio buttons, every single time
noman-land · 10 months ago
Incredibly brilliant. Seems to have gone completely unnoticed 2.5 years ago.

https://news.ycombinator.com/item?id=33579407

flippyhead · 10 months ago
See now that's amazing. Luck is such a factor in ... everything!
avestura · 10 months ago
Another hug of death. The website says "It must be upgraded via the Firebase console before it can begin serving traffic again."

Wayback machine for when it used to work: https://web.archive.org/web/20250317122419/https://benjamina...

faresahmed · 10 months ago
Makes you wonder, how many webpages are dependant on such services. The Web has always been brittle, but it's a little sad seeing a website not able to survive ~50k users on its first day online.

Even the least offenders, GitHub Pages, broke links before [0].

[0]: https://github.blog/news-insights/product-news/new-github-pa...

frozenlettuce · 10 months ago
Best anti-firebase post I've ever seen
craigseeman · 10 months ago
Yah, I hope this doesn't end up costing them an arm and a leg :( it was working last night

Deleted Comment

ycombinatrix · 10 months ago
this project doesn't use a backend, so not sure why firebase is needed. github pages would have unlimited bandwidth.
simonw · 10 months ago
Alternative URL for if the site has trouble keeping up: https://benjaminaster.github.io/CSS-Minecraft/