-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.css
More file actions
114 lines (98 loc) · 1.68 KB
/
Copy pathnav.css
File metadata and controls
114 lines (98 loc) · 1.68 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
*{
margin :0;
padding : 0;
box-sizing: border-box;
}
html{
font-size : 10px;
font-family: "Roboto Cn", sans-serif;
}
a {
text-decoration: none;
color :#eee;
}
header {
width: 100%; height: 100vh;
background: gray;
}
.container {
width: 100%;
margin : 0 auto;
}
nav {
padding: 5rem;
display: flex;
justify-content: space-between;
align-items: center;
text-transform: uppercase;
font-size : 1.6rem;
background: black;
border-radius: 8px;
}
body {
overflow-x: hidden;
}
.brand{
font-size: 3rem;
font-weight: 300;
letter-spacing: 8px;
transform : translateX(-100rem);
animation: slideIn .5s forwards;
}
nav ul{
display: flex;
}
nav ul li {
list-style: none;
transform : translateX(100rem);
animation: slideIn .5s forwards;
}
nav ul li:nth-child(1){
animation-delay: 0s;
}
nav ul li:nth-child(2){
animation-delay: 0.5s;
}
nav ul li:nth-child(3){
animation-delay: 1s;
}
nav ul li:nth-child(4){
animation-delay: 1.5s;
}
nav ul li a{
padding : 1rem 0;
margin : 0 3rem;
position: relative;
letter-spacing: 3px;
}
nav ul li a:last-child{
margin-right: 0;
}
nav ul li a::before, nav ul li a::after{
content : '';
position : absolute;
width : 100%;
height : 2px;
background: crimson;
left : 0;
transform: scaleX(0);
transition: 0.3s;
}
nav ul li a::before{
top : 0;
transform-origin: left;
}
nav ul li a::after{
bottom : 0;
transform-origin: right;
}
nav ul li a:hover::before, nav ul li a:hover::after{
transform:scaleX(1);
}
@keyframes slideIn{
form {
}
to{
transform: translateX(0);
}
}