Is it possible to create this 3d button ?

Hello community is my first post on this Chanel. I'm french guy and my English is not perfect 😉
I'm not pro in css and i want some help 🙂

I want to create this 3d button but the problem is to keep all the black edge.
I have try many solutions :

- work with the box shadows actually the best way (add extra black box shadows at the end) but it's impossible to have the 45° edge black.
this is the best i have trying https://codepen.io/morel-victor/pen/NWmpPNr

- work with perspective but is tricky when animate

Can someone help me ? 😄
Than'ks have a good day !
clideo_editor_b1829388a2b5499297c18bbea9cb1ef6.gif
Was this page helpful?