News for hackers. Stuff that matters.
Re:Building a Magical 3D Button with Vanilla HTML/CSS by dmitriid on Tuesday March 30, 2021 @02:37PM (#26638511)
> Why not use box-shadow or border? Those properties are super expensive to animate.

The web is the main obstacle to having nice things on the web.

Re:Building a Magical 3D Button with Vanilla HTML/CSS by egypturnash on Tuesday March 30, 2021 @07:00PM (#26641586)
This is a tradeoff that must be made in every place where technology meets aesthetics, not just the web - I'm an artist who mostly uses Adobe Illustrator, and every new way I think of to use it must be evaluated on the often-orthagonal axes of "how good does it look" and "how much does it slow down AI".
Re:Building a Magical 3D Button with Vanilla HTML/CSS by dmitriid on Wednesday March 31, 2021 @03:27AM (#26644422)
> This is a tradeoff that must be made in every place where technology meets aesthetics

In the case of HTML+CSS this is the direct result of the underlying tech: almost everything triggers a re-paint or resize+repaint, https://csstriggers.com/