Hacker News new | ask | show | jobs
by gandreani 118 days ago
This is very cool. I have no idea how this one work. I'm guessing most of the magic is in the box shadow?

https://codepen.io/yuanchuan/pen/OJRqGvz

2 comments

Don't be fooled by the paucity of lines, that Codepen is of course pulling in an entire JS file: https://unpkg.com/css-doodle@0.34.7/css-doodle.min.js

If you inspect what's getting rendered, there's a sprite map expressed as a data URI that's doing most of the heavy lifting.

Same

I don't understand how so few lines can produce so much different things.

And clicking on the background will just create a new random (?) background!

It seems that the aliases are doing a lot of work

The aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing