-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.css
95 lines (74 loc) · 1.29 KB
/
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
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
#menu{
width: 35px;
height: 30px;
margin: 30px 0 20px 20px;
cursor: pointer;
}
.bar{
height: 5px;
width: 100%;
background-color: #b81568;
display: block;
border-radius: 5px;
transition: 0.3s ease;
}
#bar1{
transform: translateY(-4px);
}
#bar3{
transform: translateY(4px);
}
.change .bar{
background-color: white;
}
.change #bar1{
transform: translateY(4px) rotateZ(-45deg);
}
.change #bar3{
transform: translateY(-6px) rotate(45deg);
}
.change #bar2{
opacity: 0;
}
.nav-menu li a{
color: white;
text-decoration: none;
}
.nav-menu li{
list-style: none;
padding: 16px 0;
}
.nav-menu{
padding: 0;
margin: 0 20px;
transition: 0.3s ease;
display: none;
}
.nav-menu li a:hover{
font-weight: bold;
}
.change{
display: block;
}
.menu-bg{
z-index: 1;
width: 0;
height: 0;
margin: 30px 0 20px 20px;
background: radial-gradient(circle,#e94498,#b81568);
transition: 0.3s ease;
border-radius: 50%;
}
.change-bg{
width: 550px;
height: 540px;
transform: translate(-50%, -20%);
}
.menu-bg, #menu-bar{
top: 0;
left: 0;
position: absolute;
}
#menu-bar{
z-index: 2;
}