#e8e8e8
1.button { 2 position: relative; 3 display: inline-block; 4 padding: 12px 30px; 5 font-size: 18px; 6 text-align: center; 7 text-transform: uppercase; 8 letter-spacing: 2px; 9 border-radius: 40px; 10 background: linear-gradient(45deg, #FF0080, #FF8C00); 11 color: #fff; 12 border: none; 13 cursor: pointer; 14 overflow: hidden; 15 z-index: 1; 16} 17 18.button:before { 19 content: ''; 20 position: absolute; 21 top: 50%; 22 left: 50%; 23 transform: translate(-50%, -50%); 24 width: 0; 25 height: 0; 26 background: rgba(255, 255, 255, 0.2); 27 border-radius: 100%; 28 z-index: -1; 29 transition: all 0.5s ease; 30} 31 32.button:hover:before { 33 width: 500px; 34 height: 500px; 35} 36 37.button span { 38 position: relative; 39 z-index: 2; 40 transition: all 0.3s ease; 41} 42 43.button:hover span { 44 transform: scale(1.2); 45} 46
Comments
MIT License