Hover Background Slide Up Animated Button #115
CSS Hover Background slide up 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-115 {
position: relative;
font-weight: 600;
background-color: transparent;
border: none;
outline: none;
color: #000;
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 16px;
overflow: hidden;
z-index: 1;
border-radius: 5px;
padding: 13px 25px;
box-sizing: border-box;
/*** full width block ***/
/* width: 100%; */
}
.btn-115::before {
content: "";
position: absolute;
bottom: 0;
left: 0;
right: 0;
width: 100%;
height: 2px;
background-color: #e9e300;
z-index: -1;
transition: all 0.3s;
box-sizing: border-box;
}
.btn-115:hover::before {
height: 100%;
}
/*** disabled style ***/
.btn-115:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
box-shadow: none;
text-shadow: none;
}
.btn-115:disabled::before {
background-color: #b8b8b8;
}