News for hackers. Stuff that matters.
Re:Building a Magical 3D Button with Vanilla HTML/CSS by superkuh on Tuesday March 30, 2021 @03:36PM (#26639313)
It'd be nice to see an example of the button being a hyperlink to see if I could right click and open in new window or use mouse gestures with it. I tried just putting a <a href=""></a> within the class="FinalButton__Contents-shq40f-3 eFOYWi span and the link was non-functional in all GUI browsers I tried. Why bother not making it from JS when you have to use JS to actually use the button?

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.

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>