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 6 hours ago [-]
The aliases we're tripping me up! I almost understand it now. Not sure what the @lp is doing
smusamashah 7 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 7 hours ago [-]
CSS and JavaScript specialize in two very different areas and are commonly used in tandem
soperj 6 hours ago [-]
You can do layouts with javascript?
Couldn't imagine ever wanting skip grid and flexbox for whatever has been concocted up for JS.
tracker1 4 hours ago [-]
multi-window interfaces in the browser... simulating a desktop, or other user navigable environment such as in a game or simulation, where a user my want to customize their environment beyond a grid snap.
k33n 3 hours ago [-]
1. This isn’t CSS. It’s a declarative JS drawing framework with CSS flavor to the syntax
2. Without actual CSS JavaScript wouldn’t be of much use for drawing much of anything unless you were just going to use canvasses and forego the DOM entirely
sublinear 5 hours ago [-]
I agree. This seems like it would make more sense as a canvas library unless there's a use case I'm not understanding.
jtokoph 4 hours ago [-]
I think there is value in making it a declarative model
webXL 2 hours ago [-]
Man, CSS looks absolutely nothing like it did when I started out. lol
Rendered at 22:25:57 GMT+0000 (Coordinated Universal Time) with Vercel.
https://yuanchuan.dev/an-introduction-to-css-doodle
https://codepen.io/yuanchuan/pen/OJRqGvz
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
Couldn't imagine ever wanting skip grid and flexbox for whatever has been concocted up for JS.
2. Without actual CSS JavaScript wouldn’t be of much use for drawing much of anything unless you were just going to use canvasses and forego the DOM entirely