Live data from Hacker News

CSS-Doodle

css-doodle.com

1–10 of 20 posts

Re: CSS-Doodle

#3
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.

Re: CSS-Doodle

#4

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.

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

Re: CSS-Doodle

#5

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.

You can do layouts with javascript?

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

Re: CSS-Doodle

#6

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

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

Re: CSS-Doodle

#7
post #6

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

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

Re: CSS-Doodle

#9

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.

I agree. This seems like it would make more sense as a canvas library unless there's a use case I'm not understanding.

Re: CSS-Doodle

#10
post #5

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.

You can do layouts with javascript? Couldn't imagine ever wanting skip grid and flexbox for whatever has been concocted up for JS.

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.
Post reply on HN