-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday62.html
More file actions
90 lines (76 loc) · 1.67 KB
/
day62.html
File metadata and controls
90 lines (76 loc) · 1.67 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
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 62 | CSS CHALLENGE</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
}
.frame {
height: 500px;
width: 350px;
background: #F9F2E7;
display: grid;
place-items: center;
}
.burger {
width: 150px;
aspect-ratio: 1.25;
border-radius: 20px;
background:
linear-gradient(#eaa73b 0 0) top /100% 20%,
linear-gradient(#eaa73b 0 0) bottom/100% 20%;
background-repeat: no-repeat;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
position: relative;
cursor: pointer;
transition: .35s;
outline-offset: 5px;
}
.burger::before,
.burger::after {
content: "";
position: absolute;
inset: 40% -5%;
background: #82532d;
border-radius: 50px;
transition: inherit;
}
.burger:hover {
border-radius: 100px 100px 20px 20px;
background-size: 100% 45%, 100% 25%;
}
.burger:hover::before,
.burger:hover::after {
transform: translateY(50%);
}
.burger:checked {
background-size: 0 0;
}
.burger:checked::before {
transform: translateY(50%) rotate(45deg)
}
.burger:checked::after {
transform: translateY(50%) rotate(-45deg)
}
</style>
</head>
<body>
<main>
<div class="frame">
<input type="checkbox" class="burger">
</div>
</main>
</body>
</html>