#myElement { margin: 0; width: 100%; height: 100vh; background: linear-gradient(-45deg, green, orange, blue); background-size: 400% 400%; animation: none; } @keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }