-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.css
More file actions
85 lines (85 loc) · 1.4 KB
/
nav.css
File metadata and controls
85 lines (85 loc) · 1.4 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
.dropmenu{
*zoom: 1;
list-style-type: none;
width: 960px;
margin: 5px auto 30px;
padding: 0;
}
.dropmenu:before, .dropmenu:after{
content: "";
display: table;
}
.dropmenu:after{
clear: both;
}
.dropmenu li{
position: relative;
width: 20%;
float: left;
margin: 0;
padding: 0;
text-align: center;
}
.dropmenu li a{
display: block;
margin: 0;
padding: 15px 0 11px;
background: #8a9b0f;
color: #fff;
font-size: 14px;
line-height: 1;
text-decoration: none;
}
.dropmenu li ul{
list-style: none;
position: absolute;
z-index: 9999;
top: 100%;
left: 0;
margin: 0;
padding: 0;
}
.dropmenu li ul li{
width: 100%;
}
.dropmenu li ul li a{
padding: 13px 15px;
border-top: 1px solid #7c8c0e;
background: #6e7c0c;
text-align: left;
}
.dropmenu li:hover > a{
background: #6e7c0c;
}
.dropmenu li a:hover{
background: #616d0b;
}
/*上から回転してあらわれる*/
#flip2 { position: relative; z-index: 2; }
#flip2 li ul {
visibility: hidden;
perspective: 400px;
}
#flip2 li:hover ul{
visibility: visible;
}
#flip2 ul li{
transform: rotateY(90deg);
transform-origin: 50% 0;
transition: .3s;
}
#flip2 li:hover li{
transform: rotateY(0);
}
#flip2 ul li:nth-child(2) {
transition-delay: .1s;
}
#flip2 ul li:nth-child(3) {
transition-delay: .2s;
}
#flip2 ul li:nth-child(4) {
transition-delay: .3s;
}
#flip2 ul li:nth-child(5) {
transition-delay: .4s;
}