-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
81 lines (68 loc) · 1.21 KB
/
style.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
body{
background-color: #21262d;
font-family: 'Montserrat', sans-serif;
}
ul {
position: relative;
}
ul li {
list-style: none;
text-align: center;
}
ul li a {
color: #e51616;
text-decoration: none;
font-size: 3em;
font-weight: 700;
padding: 5px 20px;
display: inline-flex;
transition: 0.5s;
}
ul:hover li a {
color: #dd17174f;
}
ul li:hover a {
color: #c21212;
}
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;
font-weight: 900;
color: #0000001a;
border-radius: 50%;
z-index: -1;
opacity: 0;
text-transform: uppercase;
letter-spacing: 500px;
transition: letter-spacing 0.5s, left 0.5s;
}
ul li a:hover::before {
content: attr(data-text);
opacity: 1;
left: 50%;
letter-spacing: 10px;
width: 1800px;
height: 1800px;
}
ul li:nth-child(5n + 1) a::before {
background: #52796f;
}
ul li:nth-child(5n + 2) a::before {
background: #aa6f73;
}
ul li:nth-child(5n + 3) a::before {
background: #66545e;
}
ul li:nth-child(5n + 4) a::before {
background: #355c7d;
}
ul li:nth-child(5n + 5) a::before {
background: #6c5b78;
}