-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
91 lines (76 loc) · 1.32 KB
/
styles.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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.overlay {
position: fixed;
background-color: #7ba9c3;
top: 0;
left: 0;
width: 100%;
height: 0;
opacity: 0;
visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
transition: opacity 0.3s, visibility 0.3s, height 0.3s;
}
nav {
font-size: 2rem;
font-family: Arial, Helvetica, sans-serif;
text-align: center;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
opacity: 0;
margin: 1rem 0;
}
nav ul li a {
color: #fff;
text-decoration: none;
transition: opacity 0.2s ease;
opacity: 0.75;
}
nav ul li a:hover {
opacity: 1;
}
@keyframes fadeInLeft {
0% {
opacity: 0;
transform: translate3d(-25%, 0, 0);
}
100% {
opacity: 1;
transform: translate3d(0, 0, 0);
}
}
.overlay.visible {
opacity: 0.85;
visibility: visible;
height: 100%;
}
.overlay.visible li {
animation: fadeInLeft 0.2s ease forwards;
}
.overlay.visible li:nth-of-type(1) {
animation-delay: 0.23s;
}
.overlay.visible li:nth-of-type(2) {
animation-delay: 0.26s;
}
.overlay.visible li:nth-of-type(3) {
animation-delay: 0.29s;
}
.overlay.visible li:nth-of-type(4) {
animation-delay: 0.32s;
}
.overlay.visible li:nth-of-type(5) {
animation-delay: 0.35s;
}