How do I code the button given in the Wix editor along with the animation?

I need to create a button like this. But unfortunately, I’m not able to code the button given below along with the hover animation. Please and thanks.

What exactly are you trying to do?

$w('#button1').style.backgroundColor = "black"
$w('#button1').show('slide')
$w('#button1').hide('flip')

I am trying to make the same button and animation, just like the one given in the Wix editor.