Skip to content

Commit

Permalink
Merge pull request #78 from gudzsv/header
Browse files Browse the repository at this point in the history
add-overflow
  • Loading branch information
gudzsv authored Apr 30, 2024
2 parents 29f1814 + 2baeabd commit e3a476c
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 e3a476c

Please sign in to comment.