Re:Building a Magical 3D Button with Vanilla HTML/CSS
by _carbyau_ on Tuesday March 30, 2021 @07:02PM
(#26641602)
I am not a fan over super flatness and hence I appreciate a fake-3D button.
But in the same way that many great computer games ALSO don't try for ultra-realism, I don't think it needs to model the real world as much as it does.
Things I'd do without:
- rising on hover. Colour change is enough acknowledgement.
- shadow. Having the two coloured layers is enough.
- spring-like overshoot behaviour. Simple down+up is fine.
But it is always cool to see a nicely written "I want to achieve this; this is how" article. +1 to author.
But in the same way that many great computer games ALSO don't try for ultra-realism, I don't think it needs to model the real world as much as it does.
Things I'd do without:
- rising on hover. Colour change is enough acknowledgement.
- shadow. Having the two coloured layers is enough.
- spring-like overshoot behaviour. Simple down+up is fine.
But it is always cool to see a nicely written "I want to achieve this; this is how" article. +1 to author.