Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@extra0
Last active March 6, 2017 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extra0/f4d288f4cfe4bc73d896bffa3299d862 to your computer and use it in GitHub Desktop.
Save extra0/f4d288f4cfe4bc73d896bffa3299d862 to your computer and use it in GitHub Desktop.
Моб. кнопка меню
&-btn {
position: relative;
background: none;
border: none;
width: 36px;
height: 23px;
padding: 0;
@include transition(all 0.2s ease-in-out);
* {
display: block;
width: 100%;
height: 3px;
background-color: $ruby;
@include transition(all 0.2s ease-in-out);
position: relative;
}
&:before,
&:after {
content: '';
position: absolute;
width: 100%;
height: 3px;
background-color: $ruby;
@include transition(all 0.2s ease-in-out);
}
&:before {
top: 0;
left: 0
}
&:after {
bottom: 0;
left: 0;
}
&.active {
&:before {
@include transform(rotate(45deg));
top: 10px;
}
&:after {
bottom: 10px;
@include transform(rotate(-45deg));
}
* {
opacity: 0;
@include transform(translateX(-20px));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment