Gold Color Border Animated Button #94

CSS hover gold color border 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-94"><span>Button 94</span></button>
Button CSS
.btn-94 {
    --bg-color_94: #000;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: 500ms ease;
    width: 170px;
    height: 50px;
    z-index: 1;
    text-transform: uppercase;
    background-size: 100%;
    --bg-gold: linear-gradient(90deg, #893c15 0%, #ffde44 17%, #b1741e 24%, #ffe752 40%, #e09326 50%, #e4962a 59%, #b0781b 70%, #efb333 85%, #873a1a 100%);
    background: var(--bg-gold);
    box-sizing: border-box;
}

.btn-94 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    background: var(--bg-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-94::before {
    position: absolute;
    content: '';
    inset: 3px;
    border-radius: 10px;
    background: var(--bg-color_94);
    z-index: -1;
    box-sizing: border-box;
}

.btn-94:hover {
    animation: move_94 5s infinite alternate ease-in-out;
}

.btn-94:hover span {
    animation: move_94 5s infinite alternate ease-in-out;
}

.btn-94:hover {
    transform: scale(1.1);
}

.btn-94:active {
    animation: move_94 1s infinite alternate ease-in-out;
}

.btn-94:active span {
    animation: move_94 1s infinite alternate ease-in-out;
}

@keyframes move_94 {
    0% {
        background-size: 100%;
        background-position: 50%;
    }

    50% {
        background-size: 500%;
        background-position: 0%;
    }

    100% {
        background-size: 200%;
        background-position: 100%;
    }
}

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