57 points | by dsego 8 hours ago
3 comments
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
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
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
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