Hover Background Flip Animated Button #71
CSS Hover Background Flip animated button
Adding these style CSS buttons to your website is easier than you think. Simply copy and paste the CSS code provided with each button design into your stylesheet
Preview Button Style
You can view the default style of buttons, the disabled state mode style of buttons, and the full-width block style of the button here. Some buttons style may not display in full width format
Button Source Code HTML and CSS
Click the button below to download the source code or edit it live.
To copy this click on the icon at the top right of the code box
.btn-71 {
background: transparent;
color: #000;
font-size: 16px;
text-transform: uppercase;
font-weight: 600;
border: none;
padding: 15px 30px;
perspective: 30rem;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.308);
display: inline-flex;
justify-content: center;
align-items: center;
text-decoration: none;
outline: none;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
box-sizing: border-box;
z-index: 1;
user-select: none;
/*** full width block ***/
/* width: 100% */
}
.btn-71::before {
content: '';
display: block;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 10px;
background: linear-gradient(320deg, rgb(0 255 127 / 68%), rgb(0 147 255 / 53%));
z-index: -1;
box-sizing: border-box;
transition: transform 1s;
}
.btn-71:hover::before {
transform: rotateY(180deg);
}
.btn-71:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
box-shadow: none;
}
.btn-71:disabled::before {
background: #dcdcdc;
z-index: -1;
}