6.1K views
CSSAdd prefixes
1button { 2 display: flex; 3 height: 3em; 4 width: 100px; 5 align-items: center; 6 justify-content: center; 7 background-color: #eeeeee4b; 8 border-radius: 3px; 9 letter-spacing: 1px; 10 transition: all 0.2s linear; 11 cursor: pointer; 12 border: none; 13 background: #fff; 14} 15 16button > svg { 17 margin-right: 5px; 18 margin-left: 5px; 19 font-size: 20px; 20 transition: all 0.4s ease-in; 21} 22 23button:hover > svg { 24 font-size: 1.2em; 25 transform: translateX(-5px); 26} 27 28button:hover { 29 box-shadow: 9px 9px 33px #d1d1d1, -9px -9px 33px #ffffff; 30 transform: translateY(-2px); 31}
HTML
1<button> 2 <svg height="16" width="16" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 1024 1024"><path d="M874.690416 495.52477c0 11.2973-9.168824 20.466124-20.466124 20.466124l-604.773963 0 188.083679 188.083679c7.992021 7.992021 7.992021 20.947078 0 28.939099-4.001127 3.990894-9.240455 5.996574-14.46955 5.996574-5.239328 0-10.478655-1.995447-14.479783-5.996574l-223.00912-223.00912c-3.837398-3.837398-5.996574-9.046027-5.996574-14.46955 0-5.433756 2.159176-10.632151 5.996574-14.46955l223.019353-223.029586c7.992021-7.992021 20.957311-7.992021 28.949332 0 7.992021 8.002254 7.992021 20.957311 0 28.949332l-188.073446 188.073446 604.753497 0C865.521592 475.058646 874.690416 484.217237 874.690416 495.52477z"></path></svg> 3 <span>Back</span> 4</button>