Hover Background Animated Button #67

CSS Hover Background 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 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-67">Button 67</button>
Button CSS
.btn-67 {
    padding: 13px 25px;
    font-size: 17px;
    color: #fff;
    font-weight: 600;
    transition: all .2s;
    position: relative;
    background: #000;
    cursor: pointer;
    user-select: none;
    border: none;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 4px;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-67:before,
.btn-67:after {
    content: "";
    position: absolute;
    top: 50%;
    background: #2196f3;
    height: 108%;
    width: 0;
    z-index: -1;
    transition: all .7s;
    transform: translateY(-50%);
}

.btn-67:before {
    left: 0%;
    border-radius: 0 5px 5px 0;
}

.btn-67:after {
    right: 0%;
    border-radius: 5px 0 0 5px;
}

.btn-67:hover {
    color: #fff;
    box-shadow: rgb(3 169 244 / 50%) 0 30px 60px -12px inset, rgb(3 169 244 / 50%) 0 18px 36px -18px inset;
    z-index: 2;
}

.btn-67:hover::before {
    width: 50%;
    left: 50%;
}

.btn-67:hover::after {
    width: 50%;
    right: 50%;
}

.btn-67:disabled {
    pointer-events: none;
    opacity: .65;
    color: #7e7e7e;
    background: #dcdcdc;
    box-shadow: none;
}