Button by MikeAndrewDesigner
#212121
1#ui { 2 font-weight: bolder; 3 background: -webkit-linear-gradient(#B563FF, #535EFC, #0EC8EE); 4 -webkit-background-clip: text; 5 -webkit-text-fill-color: transparent; 6 border-bottom: 4px solid transparent; 7 border-image: linear-gradient(0.25turn, #535EFC, #0EC8EE, #0EC8EE); 8 border-image-slice: 1; 9 display: inline; 10} 11 12.button { 13 position: relative; 14 padding: 20px 30px; 15 border-radius: 6px; 16 border: none; 17 color: #fff; 18 font-weight: 00; 19 cursor: pointer; 20 font-size: 1.5em; 21 font-weight: 600; 22 background-color: #2c2c2c; 23 transition: all 0.2s ease; 24} 25 26.button:hover { 27 background: linear-gradient(144deg, #1e1e1e , 20%,#1e1e1e 50%,#1e1e1e ); 28 transition: all 0.2s ease; 29 color: #fff; 30} 31 32.button:active { 33 transform: scale(0.96); 34} 35 36.button:before, 37.button:after { 38 position: absolute; 39 content: ""; 40 width: 150%; 41 left: 50%; 42 height: 100%; 43 transform: translateX(-50%); 44 z-index: -1000; 45 background-repeat: no-repeat; 46} 47 48.button:hover:before { 49 top: -70%; 50 background-image: radial-gradient(circle, #7d2ae8 20%, transparent 20%), 51 radial-gradient(circle, transparent 20%, #7d2ae8 20%, transparent 30%), 52 radial-gradient(circle, #535EFC 20%, transparent 20%), 53 radial-gradient(circle, #7d2ae8 20%, transparent 20%), 54 radial-gradient(circle, transparent 10%, #7d2ae8 15%, transparent 20%), 55 radial-gradient(circle, #0EC8EE 20%, transparent 20%), 56 radial-gradient(circle, #7d2ae8 20%, transparent 20%), 57 radial-gradient(circle, #0EC8EE 20%, transparent 20%), 58 radial-gradient(circle, #0EC8EE 20%, transparent 20%); 59 background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%, 60 10% 10%, 18% 18%; 61 background-position: 50% 120%; 62 animation: greentopBubbles 0.6s ease; 63} 64 65@keyframes greentopBubbles { 66 0% { 67 background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%, 68 40% 90%, 55% 90%, 70% 90%; 69 } 70 71 50% { 72 background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%, 73 50% 50%, 65% 20%, 90% 30%; 74 } 75 76 100% { 77 background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%, 78 50% 40%, 65% 10%, 90% 20%; 79 background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; 80 } 81} 82 83.button:hover::after { 84 bottom: -70%; 85 background-image: radial-gradient(circle, #7d2ae8 20%, transparent 20%), 86 radial-gradient(circle, #535EFC 20%, transparent 20%), 87 radial-gradient(circle, transparent 10%, #7d2ae8 15%, transparent 20%), 88 radial-gradient(circle, #535EFC 20%, transparent 20%), 89 radial-gradient(circle, #7d2ae8 20%, transparent 20%), 90 radial-gradient(circle, #535EFC 20%, transparent 20%), 91 radial-gradient(circle, #7d2ae8 20%, transparent 20%); 92 background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%; 93 background-position: 50% 0%; 94 animation: greenbottomBubbles 0.6s ease; 95} 96 97@keyframes greenbottomBubbles { 98 0% { 99 background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%, 100 70% -10%, 70% 0%; 101 } 102 103 50% { 104 background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%, 105 105% 0%; 106 } 107 108 100% { 109 background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%, 110 110% 10%; 111 background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; 112 } 113}
702 views
702 views
MIT License