Hover Background Slide Animated Button #130

CSS Hover Background slide 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-130">Button 130</button>
Button CSS
.btn-130 {
    --color: #64c0ec;
    padding: 12px 25px;
    background-color: transparent;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: .5s;
    font-weight: 400;
    font-size: 16px;
    border: 1px solid var(--color);
    text-transform: uppercase;
    color: var(--color);
    z-index: 1;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-130::before,
.btn-130::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background-color: var(--color);
    transition: 1s ease;
}

.btn-130::before {
    top: -1em;
    left: -1em;
}

.btn-130::after {
    left: calc(100% + 1em);
    top: calc(100% + 1em);
}

.btn-130:hover::before,
.btn-130:hover::after {
    height: 410px;
    width: 410px;
}

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

.btn-130:active {
    --color: #000;;
}

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