Hover Outline Effect Button #125

CSS Hover outline effect 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 style

Disabled style

Full width block style

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 HTML
<button class="btn-125">Button 125</button>
Button CSS
.btn-125 {
    position: relative;
    padding: 14px 26px;
    color: #000;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.5s;
    border: none;
    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;
    box-sizing: border-box;
    border-radius: 5px;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-125::after,
.btn-125::before {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    z-index: -1;
    box-sizing: border-box;
}

.btn-125::before {
    background: #00a82a;
    transition: all 0.3s;
}

.btn-125:hover::before {
    opacity: 0;
    transform: scale(0.7, 0.7);
}

.btn-125::after {
    transition: all 0.4s;
    border: 2px solid #00a82a;
    transform: scale(1.5, 1.5);
    opacity: 0;
}

.btn-125:hover::after {
    opacity: 1;
    transform: scale(1, 1);
}

/*** disabled style ***/
.btn-125:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    text-shadow: none;
    box-shadow: none;
}

.btn-125:disabled::before {
    background: #dcdcdc;
}