Re:Building a Magical 3D Button with Vanilla HTML/CSS
by applecrazy on Tuesday March 30, 2021 @05:26PM
(#26640756)
It does work. The following markup rendered a button that as also a standard anchor tag:
<a class="pushable" href="//google.com">
<span class="front">
Push me
</span>
</a>
This button also does not render at all in browsers older than a handful of years. This might be good for a fun, hip project or something commercial where the customer base is small and well characterized. But if it's a site you where expect all kinds of people from all walks of life this isn't going to cover it.
The next step should be to implement it in a way that falls back safely so the function is always accessible even if the fancy animation isn't.