CSSAdd prefixes
1button { 2 padding: 15px 30px 15px 50px; 3 background: #181c35; 4 border-radius: 30px; 5 display: flex; 6 position: relative; 7 color: #fff; 8 font-weight: 400; 9 overflow: hidden; 10 transition: all ease-in-out .5s; 11 border: #ffffff56 solid 1px; 12 box-shadow: #51eafd 0px 0px 50px -15px; 13} 14 15button:before { 16 content: ""; 17 width: 100%; 18 height: 100%; 19 position: absolute; 20 top: -90%; 21 left: -90%; 22 filter: blur(20px); 23 background: #a11ee3; 24} 25 26button:after { 27 content: ""; 28 width: 100%; 29 height: 100%; 30 position: absolute; 31 bottom: -90%; 32 right: -90%; 33 filter: blur(20px); 34 background: #51eafd; 35} 36 37button .icon { 38 transform: scale(0.07); 39 width: 20px; 40 height: 20px; 41 position: absolute; 42 left: 14px; 43 top: 2px; 44 transition: all ease-in-out .5s; 45 z-index: 9; 46 rotate: 45deg 47} 48 49button .icon path { 50 fill: #fff; 51} 52 53button .launch { 54 background: fff; 55 background: #fff; 56 width: 300px; 57 height: 300px; 58 rotate: 45deg; 59 position: absolute; 60 left: -9px; 61 top: 550%; 62 z-index: 0; 63 transform: translateX(-56%); 64 transition: all ease-in-out 1s; 65} 66 67button .text { 68 z-index: 9; 69 transition: all ease-in-out .3s; 70} 71 72button:hover .icon { 73 transform: scale(0.07); 74 animation: shake_341 2s infinite; 75 top: 5px; 76 left: 8px; 77 rotate: 0deg; 78} 79 80button:active { 81 transform: scale(0.7); 82} 83 84button:hover { 85 box-shadow: 0px 0px 0px 10px #00000017; 86} 87 88button:focus { 89 color: #464646; 90} 91 92button:focus .icon { 93 transform: scale(0.07); 94 animation: launch_341 2s alternate; 95} 96 97button:focus .icon path { 98 animation: fill_341 2s linear; 99 animation-fill-mode: forwards; 100} 101 102button:focus .launch { 103 top: -90%; 104} 105 106@keyframes shake_341 { 107 10%, 90% { 108 transform: scale(0.07) translate3d(-6px, 0, 0); 109 } 110 111 20%, 80% { 112 transform: scale(0.07) translate3d(7px, 0, 0); 113 } 114 115 30%, 50%, 70% { 116 transform: scale(0.07) translate3d(-9px, 0, 0); 117 } 118 119 40%, 60% { 120 transform: scale(0.07) translate3d(9px, 0, 0); 121 } 122} 123 124@keyframes launch_341 { 125 0% { 126 top: 0px; 127 opacity: 1; 128 } 129 130 20% { 131 top: -100%; 132 opacity: 1; 133 } 134 135 20.5% { 136 opacity: 0; 137 } 138 139 24% { 140 opacity: 0; 141 top: 100%; 142 } 143 144 25% { 145 opacity: 1; 146 } 147 148 100% { 149 top: 6px; 150 } 151} 152 153@keyframes fill_341 { 154 0% { 155 fill: #fff; 156 } 157 158 20% { 159 fill: #fff; 160 } 161 162 20.5% { 163 opacity: 0; 164 } 165 166 100% { 167 fill: #464646; 168 } 169}
HTML
1<button> 2 <span class="icon"> 3 4<svg height="303.09363" width="187.41829" version="1.1"> 5 <path id="path4" stroke-linecap="round" style="stroke:none;stroke-width:2.81;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none" d="m 105.04479,7.9451197 c -0.54247,-0.518571 -1.09286,-1.029222 -1.64524,-1.54186 -0.61595,-0.572255 -1.22596,-1.146482 -1.85384,-1.710782 -1.25775,-1.134567 -2.537358,-2.259184 -3.844788,-3.36394 -2.09427,-1.77237697 -5.16413,-1.77038997 -7.26039,0 -1.30742,1.104756 -2.58107,2.227394 -3.83882,3.35798 -0.63782,0.574234 -1.25577,1.156416 -1.87769,1.734625 -0.53847,0.502703 -1.0829,1.003419 -1.61143,1.512084 -0.88818,0.848436 -1.75648,1.70482 -2.61684,2.5651783 -0.14306,0.143062 -0.28811,0.288111 -0.42919,0.43316 -17.060123,17.22703 -28.588524,37.172235 -35.801225,61.735159 -0.125179,0.435146 -0.260293,0.860358 -0.387459,1.293517 -0.04371,0.154984 -0.09339,0.300033 -0.137101,0.455017 -0.0099,0.03377 -0.0079,0.07153 -0.01788,0.105302 -5.766187,20.286964 -8.524101,43.53849 -8.524101,70.45796 0,3.05993 0.05365,6.10596 0.13114,9.14403 l -24.167515,28.14543 c -0.707361,0.82261 -1.160391,1.83199 -1.3074264,2.90495 l -9.80369097,72.24621 c -0.311955,2.29892 0.818631,4.55414 2.84931497,5.67479 2.028696,1.12263 4.538239,0.88221 6.320552,-0.60206 L 51.189952,227.47351 h 24.37615 c -3.33215,5.3072 -5.31316,12.12847 -5.31514,19.66505 0.002,4.51638 0.72127,8.8599 2.15983,12.95305 1.93929,5.40854 7.59023,18.67752 13.573,32.72739 l 2.91687,6.85505 c 0.88221,2.07439 2.91687,3.42156 5.17208,3.41957 1.52003,0.002 2.94072,-0.61199 3.97593,-1.6472 0.49873,-0.49873 0.90804,-1.09879 1.19615,-1.77635 l 3.020198,-7.10143 c 5.93309,-13.93661 11.53635,-27.10227 13.48358,-32.51875 1.42267,-4.06137 2.14394,-8.40687 2.14394,-12.91729 0,-7.53459 -1.983,-14.35387 -5.31515,-19.66107 h 23.65289 l 41.9668,35.01637 c 1.78032,1.48626 4.29185,1.72469 6.32055,0.60205 0.46892,-0.2583 0.88817,-0.5782 1.25378,-0.94381 1.22,-1.22 1.83596,-2.96058 1.59553,-4.73097 l -9.80569,-72.24027 c -0.14704,-1.07297 -0.60007,-2.08235 -1.30743,-2.90495 l -23.45419,-27.31289 c 0.0914,-3.31427 0.14107,-6.63847 0.14306,-9.97857 0,-26.93934 -2.75792,-50.202781 -8.53006,-70.499678 -0.006,-0.02183 -0.006,-0.0457 -0.012,-0.06753 -0.0278,-0.09936 -0.0596,-0.190728 -0.0874,-0.290098 -0.26625,-0.929902 -0.5484,-1.843908 -0.83055,-2.761888 -7.23257,-23.950938 -18.64573,-43.486827 -35.37602,-60.391968 -0.16279,-0.16704 -0.32573,-0.329972 -0.49064,-0.49489 -0.84022,-0.8487053 -1.69701,-1.6927643 -2.57114,-2.5274333 z m 12.504,114.1176503 c 0,6.2669 -2.44,12.16423 -6.87492,16.59915 -4.43293,4.43293 -10.32827,6.87491 -16.599138,6.87491 -12.94511,-0.002 -23.47407,-10.53094 -23.47605,-23.47605 v 0 c 0.004,-12.94709 10.53889,-23.47406 23.47406,-23.47406 6.268888,-0.002 12.166218,2.43801 16.601138,6.87293 4.43491,4.43492 6.8769,10.33025 6.87491,16.60312 z"></path> 6</svg> 7 8 </span> 9<span class="text"> 10Launch 11</span> 12<span class="launch"> 13</span> 14</button>
