-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu-circle-fixed.css
More file actions
79 lines (70 loc) · 1.65 KB
/
menu-circle-fixed.css
File metadata and controls
79 lines (70 loc) · 1.65 KB
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
}
body{
display: flex;
box-sizing: border-box;
background-color: rgb(213, 217, 221);
justify-content: center;
}
/* this for container toggle */
.menu{
/* you can change this fixed or absolute */
position: fixed !important;
width: 200px;
height: 200px;
justify-content: center;
align-items: center;
display: flex;
top: 50%;
}
.menu li{
position:absolute;
list-style: none;
transform-origin: 100px;
left: 0;
transition: 0.5s ;
transition-delay: calc(0.1s * var(--i));
transform: rotate(0deg) translateX(80px);
}
.menu.active li{
transform: rotate(calc( 360deg / 8* var(--i)));
}
/* if get image ,if you not use image for toggle delete this */
img.menu-toggle{
width: 30px;
height: auto;
}
.menu li a{
background: rgb(197, 197, 197);
display: flex;
justify-content: center;
width: 40px;
height: 40px;
align-items: center;
border-radius: 50%;
transform: rotate(calc( 360deg / -8* var(--i)));
box-shadow: 2px 5px 16px 0px #24262957, 5px 5px 15px 5px rgba(0,0,0,0);
}
.toggle{
position: absolute;
width: 50px;
height: 50px;
background: rgb(177, 177, 184); /* for change color toggle background */
display: flex;
justify-content: center;
align-items: center;
z-index: 10000;
border-radius: 50%;
box-shadow: none;
cursor: pointer;
transition: all ease-out 0.9s;
box-shadow: 2px 5px 16px 0px #242629a2, 5px 5px 15px 5px rgba(0,0,0,0);
}
.menu.active .toggle{
transform: rotate(360deg);
}