-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu_icon.css
96 lines (96 loc) · 1.58 KB
/
menu_icon.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
body
{
background: linear-gradient(35deg,#f05a4f,#f4c030);
margin:0;
padding:0;
display: flex;
top: 10%;
left: 90%;
/*justify-content: center;
align-items: center;
height: 100vh;*/
}
.toggle
{
position: relative;
width: 80px;
height: 80px;
cursor: pointer;
transition: 0.5s;
}
.toggle span
{
width: 50%;
height: 4px;;
position: absolute;
transition: 0.5s;
background: #262626;
transform: translateX(-50%);
}
.toggle span:nth-child(1)
{
top:30%;
left:50%;
}
.toggle span:nth-child(2)
{
bottom:30%;
left:50%;
}
.toggle.active span
{
background: #fff;
}
.toggle.active span:nth-child(1)
{
top:45%;
left:50%;
width: 60%;
}
.toggle.active span:nth-child(2)
{
bottom:45%;
left:50%;
width: 60%;
}
.toggle.active span:nth-child(1)
{
transform: translate(-50%,-50%) rotate(135deg);
}
.toggle.active span:nth-child(2)
{
transform: translate(-50%,-50%) rotate(225deg);
}
.toggle:before
{
content: '';
position: absolute;
width: 50%;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
height: 4px;
background: #262626;
transition: 0.5s;
z-index: -1;
}
.toggle.active:before
{
width: 100%;
height: 100%;
}
.toggle.ovrelay
{
position: fixed;
top:20px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(0,0,0,.95);
transition: transfrom 0.5s;
}
.toggle.ovrelay.active
{
transform: scale(100,100)
}