-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
72 lines (71 loc) · 1.69 KB
/
main.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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;500;700;900&display=swap");
* {
margin: 0;
padding: 0;
font-family: "Roboto", sans-serif;
box-sizing: border-box;
}
.Animated-Radial-Menu {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #2f363e;
}
.Animated-Radial-Menu .menu {
position: relative;
width: 280px;
height: 280px;
display: flex;
justify-content: center;
align-items: center;
}
.Animated-Radial-Menu .menu .toggle {
position: absolute;
width: 60px;
height: 60px;
background: #2f363e;
border: 2px solid #fff;
border-radius: 50%;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
z-index: 100;
font-size: 2em;
transition: transform 0.5s;
}
.Animated-Radial-Menu .menu li {
position: absolute;
left: 0;
list-style: none;
transition: 0.3s;
transition-delay: calc(0.04s * var(--i));
transform: rotate(0deg) translateX(110px);
transform-origin: 140px;
}
.Animated-Radial-Menu .menu li a {
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 60px;
color: var(--clr);
border: 2px solid var(--clr);
border-radius: 50%;
font-size: 1.5em;
transform: rotate(calc(-45deg * var(--i)));
transition: 0.3s;
}
.Animated-Radial-Menu .menu li a:hover {
background: var(--clr);
color: #333;
box-shadow: 0 0 10px var(--clr), 0 0 30px var(--clr), 0 0 50px var(--clr);
}
.Animated-Radial-Menu .menu.active .toggle {
transform: rotate(315deg);
}
.Animated-Radial-Menu .menu.active li {
transform: rotate(calc(45deg * var(--i))) translateX(0px);
} /*# sourceMappingURL=Animated-Radial-Menu.css.map */