Hover Background Slide Right Animated Button #104
CSS hover background slide right 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-104 {
position: relative;
padding: 12px 28px;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
color: #000;
background-color: #fff;
border: none;
border-radius: 50px;
overflow: hidden;
z-index: 1;
transition: all 0.3s ease-in-out;
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
}
.btn-104:hover {
transform: scale(1.05);
color: #fff;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.btn-104:active {
transform: scale(0.9);
}
.btn-104::before {
content: "";
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(to right, #0006ff, #00f1ff);
transition: all 0.4s ease-in-out;
z-index: -1;
border-radius: 50px;
}
.btn-104:hover::before {
left: 0;
}
/*** disabled style ***/
.btn-104:disabled {
pointer-events: none;
opacity: .65;
color: #7e7e7e;
background: #dcdcdc;
box-shadow: none;
text-shadow: none;
}