Disabled Button Background Zebra Stripes Loading Animation #105

CSS Disabled button background zebra stripes loading animation

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-105"><span>Button 105</span></button>
Button CSS
.btn-105 {
    position: relative;
    overflow: hidden;
    padding: 15px 25px;
    border: 0;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    background: #9cc2fc;
    color: #1d1d1d;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-105>span {
    position: relative;
    z-index: 3;
}

.btn-105::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    opacity: 0;
}

@keyframes moving-105 {
    0% {
        transform: translate(25px, 0);
    }

    100% {
        transform: translate(-30px, 0);
    }
}

/*** disabled style ***/
.btn-105:disabled {
    pointer-events: none;
    opacity: .65;
    color: #000000;
    background: none;
    box-shadow: none;
    text-shadow: none;
}

.btn-105:disabled::before {
    opacity: 1;
    animation: moving-105 1s infinite linear;
    background: repeating-linear-gradient(-45deg, #8a8a8a 0 10px, #c6c6c6 10px 20px)
}