Button by zjssun
#e8e8e8
1.button { 2 position: relative; 3 list-style: none; 4 border: none; 5 background-color: transparent; 6 border-radius: 50%; 7 cursor: grab; 8} 9 10.button .svg { 11 position: absolute; 12 top: 50%; 13 left: 50%; 14 transform: translate(-50%,-50%); 15 transition: all 0.3s; 16} 17 18.button .svg2 { 19 position: absolute; 20 top: 50%; 21 left: 50%; 22 transform: translate(-50%,-50%); 23 fill: #f4af03; 24 opacity: 0; 25 transition: opacity 0.3s; 26} 27 28.button:hover .svg { 29 fill: #f4af03; 30} 31 32.button:hover .svg2 { 33 opacity: 1; 34 fill: #f4af03; 35}
944 views
944 views
MIT License