top | item 47003301 (no title) gandreani | 16 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 discuss order hn newest lelandfe|16 days ago 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.jsIf you inspect what's getting rendered, there's a sprite map expressed as a data URI that's doing most of the heavy lifting. wiether|16 days ago SameI 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|16 days ago The aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing
lelandfe|16 days ago 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.jsIf you inspect what's getting rendered, there's a sprite map expressed as a data URI that's doing most of the heavy lifting.
wiether|16 days ago SameI 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|16 days ago The aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing
gandreani|16 days ago The aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing
lelandfe|16 days ago
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.
wiether|16 days ago
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|16 days ago