-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
103 lines (89 loc) · 2.06 KB
/
style.css
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
@import url('https://fonts.googleapis.com/css2?family=Chilanka&display=swap');
html {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Chilanka', cursive, sans-serif;
background:
radial-gradient(black 15%, transparent 16%) 0 0,
radial-gradient(black 15%, transparent 16%) 8px 8px,
radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 0 1px,
radial-gradient(rgba(255, 255, 255, .1) 15%, transparent 20%) 8px 9px;
background-color: #282828;
background-size: 16px 16px;
}
ul {
position: relative;
display: flex;
transform: rotate(-20deg) skew(20deg);
transform-style: preserve-3d;
}
ul li {
position: relative;
list-style: none;
margin: 0px 40px;
}
button {
font-family: 'Chilanka', cursive, sans-serif;
padding: 10px;
width: 130px;
height: 130px;
border: none;
outline: none;
cursor: pointer;
border-radius: 10px;
background-color: #282828;
}
button span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
background: #282828;
justify-content: center;
align-items: center;
color: #fff;
text-shadow: 0px 5px 5px black;
font-size: 1.5rem;
transition: 1.5s ease-out;
border-radius: 10px;
}
button:hover span {
z-index: 1000;
transition: .3s;
color: #fff;
box-shadow: -1px 1px 1px rgba(0, 0, 0, .5);
}
button:hover span:nth-child(5) {
transform: translate(40px, -40px);
opacity: 1;
}
button:hover span:nth-child(4) {
transform: translate(30px, -30px);
opacity: .8;
}
button:hover span:nth-child(3) {
transform: translate(20px, -20px);
opacity: .6;
}
button:hover span:nth-child(2) {
transform: translate(10px, -10px);
opacity: .4;
}
button:hover span:nth-child(1) {
transform: translate(0px, 0px);
opacity: .2;
}
ul li:nth-child(1):hover span {
background: #88d1af;
}
ul li:nth-child(2):hover span {
background: #d9dd9b;
}