.animated-btn {
    width: 180px;
    height: 44px;
    border-radius: 50px 50px 0px 0px;
    line-height: 44px;
    display: inline-block;
    text-align: center;
    background: red;
    position: relative;
    text-decoration: none;
}
.animated-btn::before, .animated-btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50px 50px 0px 0px;
    background: red;
    animation: ripple-1 2s infinite ease-in-out;
    z-index: -1;
}
.animated-btn::after {
    background: red;
    animation: ripple-2 2s infinite ease-in-out;
    animation-delay: 0.5s;
    z-index: -1;

}

@keyframes ripple-1 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes ripple-2 {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
