Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .b-burger {}
- .b-burger__icon {
- background-color: #fff;
- height: 3px;
- border-radius: 2px;
- transition: transform .3s, opacity .3s;
- }
- .b-burger__icon:nth-child(1) {
- transform: translate(0, -6px);
- }
- .b-burger__icon:nth-child(3) {
- transform: translate(0, 6px);
- }
- .b-burger_active .b-burger__icon:nth-child(1) {
- transform: translate(0, 3px) rotate(45deg);
- }
- .b-burger_active .b-burger__icon:nth-child(2) {
- opacity: 0;
- }
- .b-burger_active .b-burger__icon:nth-child(3) {
- transform: translate(0, -3px) rotate(-45deg)
- }
Add Comment
Please, Sign In to add comment