Hover Background Color Fill Animated Button #126

CSS Hover Background color fill 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

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-126">Button 126</button>
Button CSS
.btn-126 {
    position: relative;
    border: 1px solid #000;
    outline: none;
    background-color: transparent;
    padding: 15px 28px;
    border-radius: 15px;
    z-index: 1;
    color: #000;
    overflow: hidden;
    font-size: 17px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: color 0.9s ease-out;
    font-weight: bold;
}

.btn-126::before {
    content: "";
    position: absolute;
    top: 20%;
    right: 20%;
    transform: translate(50%, -50%);
    width: 40px;
    height: 40px;
    background-color: #E91E63;
    filter: blur(5px);
    z-index: -1;
    transition: width 0.9s ease-out, height 0.9s ease-out,
        background-color 0.3s ease-out;
    border-radius: 50%;
}

.btn-126:hover::before {
    border-radius: 20px;
    width: 300px;
    height: 200px;
    background-color: #E91E63;
}

.btn-126:hover {
    color: #fff;
}

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

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