-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
99 lines (84 loc) · 1.64 KB
/
main.css
File metadata and controls
99 lines (84 loc) · 1.64 KB
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
@font-face {
font-family: home;
src: url("Helicopta.otf");
}
ul {
font-family: home;
font-size: 20px;
}
body {
background: #ccc;
}
ul {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
margin: 0;
padding: 0;
}
ul li {
list-style: none;
margin: 0 5px;
}
ul li a span {
padding: 0;
margin: 0;
position: absolute;
top: 30px;
color: #333;
letter-spacing: 4px;
transition: 0.5s;
}
ul li a {
text-decoration: none;
display: absolute;
display: block;
width: 210px;
height: 80px;
background: #fff;
text-align: left;
padding-left: 20px;
transform: rotate(-30deg) skewX(25deg) translate(0, 0);
transition: 0.5s;
box-shadow: -20px 20px 10px rgba(0,0,0,0.5);
}
ul li a::before {
content: '';
position: absolute;
top: 10px;
left: -20px;
height: 100%;
width: 20px;
background: #b1b1b1;
transform: 0.5s;
transform: rotate(0deg) skewY(-45deg);
}
ul li a::after {
content: '';
position: absolute;
bottom: -20px;
left: -10px;
height: 20px;
width: 100%;
background: #b1b1b1;
transform: 0.5s;
transform: rotate(0deg) skewX(-45deg);
}
ul li a:hover{
transform: rotate(-30deg) skew(25deg) translate(20px, -15px);
box-shadow: -50px 50px 50px rgba(0,0,0,0.5);
}
ul li:hover span {
color: #fff;
}
ul li:hover a {
background: #e6825a;
}
ul li:hover a:after {
background: #ee0d30;
}
ul li:hover a:before {
background: #e66a5a;
}