Glowing Gradient Button Animation #49

CSS Glowing Gradient Button 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-49 btn-49-colors">Button 49</button>
Button CSS
.btn-49 {
    position: relative;
    padding: 12px 20px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    display: inline-block;
    width: 150px;
    height: 50px;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    box-sizing: border-box;
    border: none;
    border-radius: 30px;
    z-index: 1;
    user-select: none;
    cursor: pointer;
    /*** full width block ***/
    /* width: 100%; */
}

.btn-49-colors {
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
}

.btn-49:hover {
    animation: animate-49 8s linear infinite;
}

@keyframes animate-49 {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

.btn-49:before {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    z-index: -1;
    background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
    background-size: 400%;
    border-radius: 40px;
    opacity: 0;
    transition: .5s;
}

.btn-49:hover:before {
    filter: blur(20px);
    opacity: 1;
    animation: animate-49 8s linear infinite;
}

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