-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
65 lines (65 loc) · 1.1 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--bg: #222;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--bg);
}
ul {
position: relative;
display: flex;
gap: 50px;
}
ul li {
position: relative;
list-style: none;
width: 80px;
height: 80px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: 0.5s;
}
ul li:hover {
z-index: 10000;
transform: scale(0.75);
}
ul li::before {
content: "";
position: absolute;
inset: 30px;
box-shadow: 0 0 0 10px var(--clr), 0 0 0 20px var(--bg), 0 0 0 22px var(--clr);
transition: 0.5s;
}
ul li:hover::before {
inset: 0px;
}
ul li::after {
content: "";
position: absolute;
inset: 0;
background: var(--bg);
transform: rotate(45deg);
}
ul li a {
position: relative;
text-decoration: none;
color: var(--clr);
z-index: 10;
font-size: 2em;
transition: 0.5s;
}
ul li:hover a {
font-size: 3em;
filter: drop-shadow(0 0 20px var(--clr)) drop-shadow(0 0 40px var(--clr))
drop-shadow(0 0 60px var(--clr));
}