4 ms·
I'm totally down for some good old fashioned impractical hacking. But just remember, we already have canvas, which can do all this easier, faster, and better.
by recursive 2y ago
I'm totally down for some good old fashioned impractical hacking. But just remember, we already have canvas, which can do all this easier, faster, and better.
- egypturnash 2y agoBut with less comedic value. Doing this with nothing but box-shadow is funny, mostly because it is so impractical.
- klysm 2y agoCanvas throws away a lot though, especially w accessibility
- recursive 2y agoReally? I would have guessed that canvas provides pretty much exactly the same accessibility as a UI rendered entirely out of box shadows.
- tkzed49 2y agonow I'm imagining a screen reader reading off the coordinates of 1000 box shadows
- recursive 2y agoYou could probably get it to png encode a canvas and then read it in hex too.
- dmazzoni 2y agoCanvas is better...if you're trying to do something that stays within a fixed-size box.
- kroltan 2y agoCanvas would still be faster even if you used a full-screen box. Just the string concatenation overhead of doing this with box-shadows is insanely wasteful. Which isn't to demerit the hackish creativity of taking one thing and running with it! But if you wanted to do a ball painting effect like that outside this "what if" context, it would be technically irresponsible to do it with box-shadows.
- hnbad 2y agoSure, and we already have keyboards, so there's no need to use floppy drives or rubber chickens to make music either.