« BackCSS-Doodlecss-doodle.comSubmitted by dsego 9 hours ago
  • gandreani 2 hours 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

    • wiether 16 minutes ago

      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

      • gandreani 7 minutes ago

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

    • smusamashah 2 hours ago

      As an aside but still relevant question, why is CSS preferred over JS when these days it can do lots of things like JavaScript and probably uses similar resources.

      • Minor49er an hour ago

        CSS and JavaScript specialize in two very different areas and are commonly used in tandem

        • soperj an hour ago

          You can do layouts with javascript?

          Couldn't imagine ever wanting skip grid and flexbox for whatever has been concocted up for JS.