button {
    background: linear-gradient(-45deg, #0d8d37, #6fbdf0, #38ba60, #0d8d37);
    background-size: 800% 400%;
    padding: .5em 1em;
    display: inline-block;
    border: none;
    border-radius: 50px;
    border: 2px solid #fff;
    font-size: 14px;
    font-weight: 700;
    color: white;
    transition: all .5s ease-in-out;
    animation: gradient 10s infinite cubic-bezier(.62, .28, .23, .99) both;
   }
   
   button:hover {
    animation: gradient 3s infinite;
    transform: scale(1.05);
   }
   
   button:active {
    animation: gradient 3s infinite;
    transform: scale(0.8);
   }
   
   @keyframes gradient {
    0% {
     background-position: 0% 50%;
    }
   
    50% {
     background-position: 100% 50%;
    }
   
    100% {
     background-position: 0% 50%;
    }
   }