-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.css
More file actions
99 lines (87 loc) · 1.66 KB
/
Copy pathmenu.css
File metadata and controls
99 lines (87 loc) · 1.66 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
/* styling nav bar */
.menu-wrap{
width: 300px;
height: 100%;
background-color: #262626;
position: fixed;
z-index: 2;
top: 0;
right: -300px;
display: flex;
justify-content: center;
align-items: center;
/* shaping nav bar */
border-radius: 20% 0 0 60%;
/* change timeing of transition */
transition: right .8s cubic-bezier(0.075, 0.82, 0.165, 1);
}
/* when we use js file to add 'active' class to menu, it appears */
.active{
right:0;
}
.hamburger-button{
width: 55px;
height: 50px;
padding: 10px;
background-color: #262626;
border-radius: 10px;
position: fixed;
top: 20px;
right: 20px;
cursor: pointer;
display: flex;
justify-content: space-around;
flex-direction: column;
}
.line{
width: 100%;
height: 3px;
background-color: #fff;
transition: all .8s;
}
.active .line-1{
transform: rotateZ(-405deg) translate(-8px, 6px);}
.active .line-2{
opacity: 0;
}
.active .line-3{
transform: rotateZ(45deg) translate(-8px, -6px);
}
.nav-hyperlink-container{
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.link-list{
width: fit-content;
display: flex;
justify-content: right;
align-items: flex-end;
flex-direction: column;
text-align: right;
}
.nav-btn{
width: fit-content;
margin: 25px 0 25px 0;
color: #fff;
font-size: 1.4rem;
letter-spacing: 2px;
text-transform: uppercase;
position: relative;
}
.nav-btn::after{
content: "";
width: 100%;
height: 2px;
background-color: #15cfff;
position: absolute;
left: 0;
bottom: 0;
transform: scaleX(0);
transform-origin: right;
transition: transform .2s;
}
.nav-btn:hover::after{
transform: scaleX(1);
}