JSFiddle - React, Tailwind, and code Playground
HTML
<p class="bouton">
<a>Texte du bouton</a>
</p>
CSS
.bouton a {
color:#fff;
text-decoration: none;
background: linear-gradient(180deg, rgb(0, 0, 0) 100%, rgb(255, 0, 0 ) 100%);
background-size: 100% 100%, 100% 100%;
background-position: top, bottom;
background-repeat: no-repeat, no-repeat;
border:#000 1px solid;
border-radius:10px;
padding:10px;
transition-duration: 1s;
transition-property: background-size;
}
.bouton a:hover {
color:#f00;
text-decoration: none;
background: linear-gradient(180deg, rgb(0, 0, 0) 100%, rgb(255, 0, 0 ) 100%);
background-size: 100% 0, 100% 100%;
background-position: bottom, top;
background-repeat: no-repeat, no-repeat;
transition-duration: 1s;
transition-property: background-size,color;
}