Hover Background And Border Animated Button #194
CSS Hover Background And Border Animated Button. Hover border gradient color 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-194 {
--bg_color: transparent;
--border_width: 2px;
--color:#202020;
border: solid var(--border_width) #62d353;
position: relative;
padding: 15px 25px;
background-color: var(--bg_color);
font-size: 18px;
font-weight: 600;
color: var(--color);
letter-spacing: 1px;
overflow: hidden;
transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
font-family: Arial, Helvetica, sans-serif;
cursor: pointer;
text-decoration: none;
user-select: none;
display: inline-flex;
justify-content: center;
align-items: center;
z-index: 1;
/*** full width block ***/
/* width: 100%; */
}
.btn-194::before {
position: absolute;
content: '';
width: 2px;
height: 100%;
left: -10px;
top: 0;
background: linear-gradient(135deg, #ff9600 0%, #ff00f7);
pointer-events: none;
margin: auto;
transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
box-sizing: border-box;
z-index: -1;
}
.btn-194:hover {
--bg_color: transparent;
letter-spacing: 2px;
border-image: linear-gradient(135deg, #ff9600 0%, #ff00f7 100%);
border-image-width: var(--border_width);
border-image-slice: 1;
}
.btn-194:hover span {
background: linear-gradient(135deg, #ff9600 0%, #ff00f7);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.btn-194:hover::before {
left: 110%;
}
.btn-194:active {
scale: 0.98;
}
/*** disabled style ***/
.btn-194:disabled {
pointer-events: none;
opacity: .65;
color: #929292;
box-shadow: none;
text-shadow: none;
background: #dcdcdc;
}
/*** dark mode button ***/
html.dark-mode .btn-194{
--color: #d1d1d1;
}