Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nogueirawelton authored Aug 7, 2021
1 parent 94d8042 commit 001dc47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,21 @@ h2 {
}
.hamburguer-menu {
display: flex;
position: relative;
}
.slice {
transition: all var(--animation-time);
}
.hamburguer-menu.active > .slice:nth-of-type(1) {
position: absolute;
transform: rotate(135deg);
}
.hamburguer-menu.active > .slice:nth-of-type(2) {
opacity: 0;
}
.hamburguer-menu.active > .slice:nth-of-type(3) {
position: absolute;
transform: rotate(-135deg);
}
}
@media (max-width: 510px) {
Expand Down
1 change: 1 addition & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function toggleMenu() {
const menu = document.querySelector(".header-nav-menu");
const links = document.querySelectorAll(".header-nav-menu li a");

openMenu.classList.toggle("active");
menu.classList.toggle("active");
links.forEach((link) => {
link.addEventListener("click", () => {
Expand Down

0 comments on commit 001dc47

Please sign in to comment.