-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrop.css
More file actions
72 lines (61 loc) · 1.1 KB
/
drop.css
File metadata and controls
72 lines (61 loc) · 1.1 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
body {
font-family: Arial, sans-serif;
}
.navbar {
background-color: #333;
overflow: hidden;
}
.nav-menu {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
}
.nav-item {
position: relative;
}
.nav-link {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.nav-link:hover {
background-color: #575757;
}
.dropdown {
display: none;
position: absolute;
bottom: 100%;
left: 0;
background-color: #333;
min-width: 160px;
z-index: 1;
}
.dropdown li {
text-align: left;
}
.dropdown a {
color: white;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown a:hover {
background-color: #575757;
}
.nav-item:hover .dropdown {
display: block;
animation: dropdownAnimation 0.3s ease-out forwards;
}
@keyframes dropdownAnimation {
0% {
transform: translateY(20px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}