Skip to content

Commit

Permalink
add-overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
a-nester committed Apr 30, 2024
1 parent 9c17682 commit 2baeabd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/partials/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,14 @@ function handleMenuClick() {
function handleBurgerClick() {
burgerMenu.classList.add('is-open');
openBurgerAnimation.play();
document.body.style.overflow = 'hidden';
}

function handleCloseClick() {
closeBurgerAnimation.play();
setTimeout(() => {
burgerMenu.classList.remove('is-open');
}, 500);
document.body.style.overflow = '';
}

0 comments on commit 2baeabd

Please sign in to comment.