CSSAdd prefixes
1.button { 2 background: radial-gradient(ellipse at top, white, blue, black, black); 3 color: white; 4 position: relative; 5 background-size: 130% 130%; 6 background-position: center center; 7} 8 9.button:hover { 10 background: radial-gradient(ellipse at top, white, blue, black, black); 11 animation: gradient 4s; 12 animation-fill-mode: forwards; 13 /* background-position: center center; */ 14} 15 16.button:hover:after { 17 content: ""; 18 position: absolute; 19 inset: -.625em; 20 background: radial-gradient(ellipse at top, white, blue, black, black); 21 /* background-position: center center; */ 22 filter: blur(1.5em); 23 z-index: -1; 24 animation: gradient 4s; 25 animation-fill-mode: forwards; 26} 27 28@keyframes gradient { 29 0% { 30 background-size: 130% 130%; 31 } 32 33 100% { 34 background-size: 200% 200%; 35 } 36} 37
HTML
1<div class="button">EXPLORE GALAXY</div>
