-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcreative-navbar.css
97 lines (82 loc) · 1.79 KB
/
creative-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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&displayer=swap');
#creative-navbar {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
.navigation {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow: hidden;
}
.navigation ul {
position: relative;
}
.navigation ul li {
text-align: center;
list-style: none;
}
.navigation ul li a {
color: #333;
text-decoration: none;
font-size: 3em;
padding: 5px 20px;
display: inline-flex;
font-weight: 700;
transition: 0.5s;
}
.navigation ul:hover li a {
color: #0002;
}
.navigation ul li:hover a {
color: #000;
background: #fff;
}
.navigation ul li a:before {
content: "";
position: absolute;
top: 50%;
left: 40%;
transform: translate(-50%, -50%);
display: flex;
justify-content: center;
align-items: center;
font-size: 5em;
color: rgba(0, 0, 0, 0.1);
border-radius: 50%;
z-index: -1;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 500px;
opacity: 0;
transition: letter-spacing 0.5s, left 0.5s;
}
.navigation ul li a:hover:before {
content: attr(data-text);
opacity: 1;
left: 50%;
letter-spacing: 10px;
width: 1800px;
height: 1800px;
}
.navigation ul li:nth-child(6n+1) a:before {
background: #81ecec;
}
.navigation ul li:nth-child(6n+2) a:before {
background: #ff7675;
}
.navigation ul li:nth-child(6n+3) a:before {
background: #f87f61;
}
.navigation ul li:nth-child(6n+4) a:before {
background: #a29bfe;
}
.navigation ul li:nth-child(6n+5) a:before {
background: #fd79a8;
}
.navigation ul li:nth-child(6n+6) a:before {
background: #ffeaa7;
}