-
Notifications
You must be signed in to change notification settings - Fork 3
/
Typing-navbar.css
75 lines (64 loc) · 1.29 KB
/
Typing-navbar.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
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#Typing-navbar {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #1c234a;
}
#Typing-navbar ul {
position: relative;
}
#Typing-navbar ul li {
list-style: none;
margin: 0 20px;
font-size: 4em;
}
#Typing-navbar ul li span {
position: relative;
left: -8px;
color: transparent;
}
#Typing-navbar ul li:hover span {
color: #ef0448;
}
#Typing-navbar ul li a {
position: relative;
text-decoration: none;
font-weight: 700;
color: rgba(255, 255, 255, 0.1);
}
#Typing-navbar ul li a:before {
content: attr(data-text);
position: absolute;
top: 0;
overflow: hidden;
white-space: nowrap;
color: #1bfaad;
}
#Typing-navbar ul:hover li a:before {
animation: animates 0.5s steps(9) forwards;
}
@keyframes animates {
0% {
width: 387.063px;
}
100% {
width: 0px;
}
}
#Typing-navbar ul li:hover a:before {
animation: animateTwo 1s steps(9) forwards;
}
@keyframes animateTwo {
0% {
width: 0;
}
100% {
width: 387.063px;
}
}