CSSAdd prefixes
1.space-button { 2 display: inline-block; 3 padding: 10px 20px; 4 font-size: 1.2rem; 5 text-transform: uppercase; 6 color: #fff; 7 background-color: #2d3142; 8 border-radius: 5px; 9 border: none; 10 text-decoration: none; 11 transition: all 0.3s ease; 12 position: relative; 13} 14 15.space-button:hover { 16 background-color: #454b5d; 17 transform: translateY(-3px); 18 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 19} 20 21.space-button:active { 22 background-color: #1e222f; 23 transform: translateY(-1px); 24 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); 25} 26 27.space-button svg { 28 display: inline-block; 29 margin-right: 10px; 30 width: 20px; 31 height: 20px; 32 fill: #fff; 33 filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)); 34 transform: translateZ(0); 35 transition: all 0.3s ease; 36} 37 38.space-button:hover svg { 39 transform: translateZ(10px) rotateY(180deg) rotateX(180deg); 40} 41 42.space-button:active svg { 43 transform: translateZ(5px) rotateY(180deg) rotateX(180deg); 44} 45
HTML
1<a class="space-button" href="#"> 2 <svg height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10-4.477-10-10-10zm0 18.5c-4.688 0-8.5-3.812-8.5-8.5s3.812-8.5 8.5-8.5 8.5 3.812 8.5 8.5-3.812 8.5-8.5 8.5zm1.5-10.5h-3v-4.5h-1v4.5h-3l4.5 5z" fill="currentColor"></path></svg> 3 Explore Space 4</a> 5
