Hover Background Animated Button #75

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-75">Button 75</button>
Button CSS
.btn-75 {
    position: relative;
    padding: 15px 25px;
    border: solid 1px #f3f3f3;
    color: #007ffe;
    cursor: pointer;
    transition: .3s;
    transition-delay: .3s;
    z-index: 1;
    text-decoration: none;
    user-select: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #e9e9e9;
    font-size: 16px;
    overflow: hidden;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-75::after {
    position: absolute;
    content: '';
    width: 17px;
    height: 17px;
    background-color: #007ffe;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
    opacity: 0;
}

.btn-75::before {
    position: absolute;
    z-index: 0;
    content: '';
    width: 17px;
    height: 17px;
    background-color: #007ffe;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
    opacity: 0;
}

.btn-75:hover::after {
    z-index: -1;
    right: 0;
    width: 50%;
    height: 100%;
    border-radius: 0;
    opacity: 1;
}

.btn-75:hover::before {
    z-index: -1;
    left: 0;
    width: 50%;
    height: 100%;
    border-radius: 0;
    opacity: 1;
}

.btn-75:hover {
    color: #fff;
    box-shadow: 5px 5px 25px 1px rgb(52 152 219 / 49%);
}

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