#e8e8e8
1button { 2 border: none; 3 position: relative; 4 width: 200px; 5 height: 73px; 6 padding: 0; 7 z-index: 2; 8 -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E") no-repeat 50% 50%; 9 mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='868' width='2500' viewBox='0 0 726 252.17'%3E%3Cpath d='M483.92 0S481.38 24.71 466 40.11c-11.74 11.74-24.09 12.66-40.26 15.07-9.42 1.41-29.7 3.77-34.81-.79-2.37-2.11-3-21-3.22-27.62-.21-6.92-1.36-16.52-2.82-18-.75 3.06-2.49 11.53-3.09 13.61S378.49 34.3 378 36a85.13 85.13 0 0 0-30.09 0c-.46-1.67-3.17-11.48-3.77-13.56s-2.34-10.55-3.09-13.61c-1.45 1.45-2.61 11.05-2.82 18-.21 6.67-.84 25.51-3.22 27.62-5.11 4.56-25.38 2.2-34.8.79-16.16-2.47-28.51-3.39-40.21-15.13C244.57 24.71 242 0 242 0H0s69.52 22.74 97.52 68.59c16.56 27.11 14.14 58.49 9.92 74.73C170 140 221.46 140 273 158.57c69.23 24.93 83.2 76.19 90 93.6 6.77-17.41 20.75-68.67 90-93.6 51.54-18.56 103-18.59 165.56-15.25-4.21-16.24-6.63-47.62 9.93-74.73C656.43 22.74 726 0 726 0z'/%3E%3C/svg%3E") no-repeat 50% 50%; 10 -webkit-mask-size: 100%; 11 cursor: pointer; 12 background-color: transparent; 13 transform: translateY(8px) 14} 15 16button:after { 17 content: ''; 18 position: absolute; 19 left: 0; 20 right: 0; 21 bottom: 0; 22 box-shadow: 0px 0 0 0 white; 23 transition: all 2s ease; 24} 25 26button:hover:after { 27 box-shadow: 0px -13px 56px 12px #ffffffa6; 28} 29 30button span { 31 position: absolute; 32 width: 100%; 33 font-size: 15px; 34 font-weight: 100; 35 left: 50%; 36 top: 39%; 37 letter-spacing: 3px; 38 text-align: center; 39 transform: translate(-50%,-50%); 40 color: black; 41 transition: all 2s ease; 42} 43 44button:hover span { 45 color: white; 46} 47 48button:before { 49 content: ''; 50 position: absolute; 51 width: 0; 52 height: 100%; 53 background-color: black; 54 left: 50%; 55 top: 50%; 56 transform: translate(-50%, -50%); 57 transition: all 1s ease; 58} 59 60button:hover:before { 61 width: 100%; 62} 63 64
Comments
MIT License