Hover Border Animated Button #19
CSS Hover border 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
<button class="btn-19 btn-19-colors">
<svg>
<rect x="0" y="0" fill="none" width="100%" height="100%"></rect>
</svg>
Button 19
</button>
.btn-19 {
cursor: pointer;
font-size: 14px;
overflow: hidden;
letter-spacing: 1.2px;
padding: 12px 15px;
position: relative;
text-decoration: none;
user-select: none;
border: 2px solid;
border-radius: 2px;
font-weight: bold;
font-family: Arial, Helvetica, sans-serif;
display: inline-block;
vertical-align: middle;
}
.btn-19 svg {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
.btn-19 rect {
fill: none;
stroke: #fff;
stroke-width: 4;
stroke-dasharray: 422, 0;
transition: all 0.35s linear;
}
.btn-19-colors {
color: #ffffff;
background-color: #d87b15;
border-color: transparent;
}
.btn-19:hover {
background-color: #000;
}
.btn-19:hover rect {
stroke-dasharray: 15, 310;
stroke-dashoffset: 90;
transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-19:disabled {
pointer-events: none;
opacity: .65;
color: #939393;
box-shadow: none;
background-color: #505050;
}