How to make a gradient on the button and set the gradient eternal animation?
-Make a gradient turned out, but make it move does not work ... tell me where I made a mistake?
#header-button { font-size: 12px; font-weight: bold; height: 50px; width: 171px; background-color: #998675; outline: 0; border: 0; border-radius: 5px; border-bottom: 3px solid #736357; cursor: pointer; margin-top: 30px; color: #fff; background-image: linear-gradient(-45deg, #998675 50%, #fff); -webkit-animation: gradient 3s linear infinite; animation: gradient 3s linear infinite; } @-webkit-keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50% } } <button id="header-button"> GET STARTED </button>
html- Kosta B.