-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path3d-menu.css
70 lines (62 loc) · 1.19 KB
/
3d-menu.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
body{
margin: 0;
padding: 0;
background-color: #262626;
}
ul{
margin: 0;
padding: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
}
ul li{
display: inline-block;
transform-style: preserve-3d;
}
ul li a{
color: #262626;
font-family: arial;
text-transform: uppercase;
font-size: 16px;
text-decoration: none;
font-weight: bold;
display: block;
position: relative;
}
ul li a span{
display: block;
padding: 15px 20px;
}
ul li a span:before{
content: attr(title);
position: absolute;
top: 0;
left: 0;
background-color: #FFA07A;
color: #fff;
padding: 15px 20px;
transition: .3s;
transform: rotateX(90deg) translateY(40px);
transform-origin: bottom;
}
ul li a span:hover:before{
transform: rotateX(0deg) translateY(0px);
}
ul li a span:after{
content: attr(title);
position: absolute;
top: 0;
left: 0;
background-color: #fff;
color: #262626;
padding: 15px 20px;
transition: .3s;
transform: rotateX(0deg) translateY(0px);
transform-origin: top;
}
ul li a span:hover:after{
transform: rotateX(90deg) translateY(-10px);
}