4 ms·
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 https://code
by gandreani 8mo 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 https://codepen.io/yuanchuan/pen/OJRqGvz
- wiether 8mo agoSame 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
- gandreani 8mo agoThe aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing
- lelandfe 7mo agoDon'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 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.