123.space-button {4 display: inline-block;5 padding: 10px 20px;6 font-size: 1.2rem;7 text-transform: uppercase;8 color: #fff;9 background-color: #2d3142;10 border-radius: 5px;11 border: none;12 text-decoration: none;13 transition: all 0.3s ease;14 position: relative;15}16.space-button:hover {17 background-color: #454b5d;18 transform: translateY(-3px);19 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);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.space-button svg {27 display: inline-block;28 margin-right: 10px;29 width: 20px;30 height: 20px;31 fill: #fff;32 filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));33 transform: translateZ(0);34 transition: all 0.3s ease;35}36.space-button:hover svg {37 transform: translateZ(10px) rotateY(180deg) rotateX(180deg);38}39.space-button:active svg {40 transform: translateZ(5px) rotateY(180deg) rotateX(180deg);41}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.space-button {
display: inline-block;
padding: 10px 20px;
font-size: 1.2rem;
text-transform: uppercase;
color: #fff;
background-color: #2d3142;
border-radius: 5px;
border: none;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
}
.space-button:hover {
background-color: #454b5d;
transform: translateY(-3px);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.space-button:active {
background-color: #1e222f;
transform: translateY(-1px);
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}
.space-button svg {
display: inline-block;
margin-right: 10px;
width: 20px;
height: 20px;
fill: #fff;
filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
transform: translateZ(0);
transition: all 0.3s ease;
}
.space-button:hover svg {
transform: translateZ(10px) rotateY(180deg) rotateX(180deg);
}
.space-button:active svg {
transform: translateZ(5px) rotateY(180deg) rotateX(180deg);
}
You need to sign in before you can write a comment.