-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
43 lines (43 loc) · 909 Bytes
/
main.css
File metadata and controls
43 lines (43 loc) · 909 Bytes
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
body {
background-color: rgba(255, 0, 0, 0.74);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.wrapper {
width: 50px;
height: 50px;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
transition: transform 330ms ease-out;
}
.wrapper.open {
transform: rotate(-45deg);
}
.line {
background-color: rgb(0, 0, 0);
border-radius: 5px;
width: 100%;
height: 6px;
}
.line.half {
width: 50%;
}
.line.start {
transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
transform-origin: right;
}
.open .line.start {
transform: rotate(-90deg) translateX(3px);
}
.line.end {
align-self: flex-end;
transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
transform-origin: left;
}
.open .line.end {
transform: rotate(-90deg) translateX(-3px);
}