

원래 이런가요? 변화는 잘 되는데..
body {
font-family: 'Noto Sans KR', sans-serif;
line-height: 1.5em;
margin:0;
font-weight: 300;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: #222;
}
a {
text-decoration: none;
color: #222;
}
.container {}
input[id=trigger] {
display: none;
}
label[for=trigger] {
width: 40px;
height: 30px;
display: block;
position: relative;
cursor: pointer;
}
label[for=trigger] span {
position: absolute;
height: 2px;
background-color: #000;
width: 100%;
left: 0;
transition: 0.3s;
}
label[for=trigger] span:nth-child(1) {
top: 0;
}
label[for=trigger] span:nth-child(2) {
top: 50%;
}
label[for=trigger] span:nth-child(3) {
top: 100%;
/* top: calc(100% - 2px); */
}
input[id=trigger]:checked + label[for=trigger] span:nth-child(1) {
top: 50%;
transform: rotate(45deg);
}
input[id=trigger]:checked + label[for=trigger] span:nth-child(2) {
opacity: 0;
}
input[id=trigger]:checked + label[for=trigger] span:nth-child(3) {
top: 50%;
transform: rotate(-45deg);
}