JSFiddle - React, Tailwind, and code Playground
by Roberts
HTML
<a href="#" class="button orange">
Te esmu es</a>
CSS
body { background: black; font-family: Arial;}
/* Button 1 */
a, a:hover { text-decoration:none; }
.button {
border: 3px solid #fff !important;
color: #fff !important;
}
/* General button style (reset) */
.button {
border: none;
font-family: inherit;
font-size: inherit;
color: inherit;
background: none;
cursor: pointer;
padding: 25px 80px;
display: inline-block;
margin: 15px 30px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
outline: none;
position: relative;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
.button:after {
content: '';
position: absolute;
z-index: -1;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
transition: all 0.3s;
}
.button {
height: 52px;
padding: 0 40px;
line-height:52px;
color: #fff;
background-image: -webkit-linear-gradient(96deg, #FFC369 0%, #FF7A56 100%);
background-image: -moz-linear-gradient(96deg, #FFC369 0%, #FF7A56 100%);
background-image: -o-linear-gradient(96deg, #FFC369 0%, #FF7A56 100%);
background-image: linear-gradient(186deg, #FFC369 0%, #FF7A56 100%);
border:none;
border-radius: 3px;
display:block;
float:left;
text-shadow: 0 1px 1px rgba(0,0,0,0.20);
}
.button:hover {
width: 100%;
height: 0;
top: 50%;
left: 50%;
background: #fff;
opacity: 0;
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
/* Send message: */
/* Button 1e */
.button {
overflow: hidden;
}
.button:after {
width: 100%;
height: 0;
top: 50%;
left: 50%;
background: #fff !important;
opacity: 0;
-webkit-transform: translateX(-50%) translateY(-50%) rotate(45deg);
-moz-transform: translateX(-50%) translateY(-50%) rotate(45deg);
-ms-transform: translateX(-50%) translateY(-50%) rotate(45deg);
transform: translateX(-50%)...