Skip to content

Instantly share code, notes, and snippets.

@mariacheline
Created December 18, 2017 09:24
Show Gist options
  • Save mariacheline/3060c2dd901ecdab2507cb16cea72a77 to your computer and use it in GitHub Desktop.
Save mariacheline/3060c2dd901ecdab2507cb16cea72a77 to your computer and use it in GitHub Desktop.
.navToggle {
display: block;
background-color: transparent;
border: none;
height: 38px;
width: 38px;
padding: 8px 8px;
margin: 10px -8px 10px 0px;
outline: none;
cursor: pointer;
z-index: 5;
&.open span:first-child {
transform: rotate(45deg) translate(4.4px, 4.4px);
}
&.open span:nth-child(2) {
width: 0%;
opacity: 0;
}
&.open span:last-child {
transform: rotate(-45deg) translate(4.4px, -4.4px);
}
span {
position: relative;
display: block;
width: 100%;
height: 2px;
margin-bottom: 4px;
background-color: #292a2a;
border-radius: 5px;
transition: all .3s cubic-bezier(1, 0.13, 0.35, 1.09);
&:last-child {
margin-bottom: 0;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment