adding some more style

This commit is contained in:
2024-09-13 02:03:00 +02:00
parent 7356bb11c0
commit eee8f5310d
3 changed files with 41 additions and 3 deletions

View File

@@ -40,12 +40,14 @@
const sideCloseButtons = document.querySelectorAll('.side-close');
const content = document.querySelector('.content');
const headermove = document.getElementById('header');
const body = document.body;
sideToggle.addEventListener('click', function() {
sideMenu.classList.toggle('active');
this.classList.toggle('menu-opened');
content.classList.toggle('content-open');
headermove.classList.toggle('header-move');
body.classList.toggle('block-scroll')
});
sideCloseButtons.forEach(button => {
@@ -54,6 +56,7 @@
sideToggle.classList.remove('menu-opened');
content.classList.remove('content-open');
headermove.classList.remove('header-move');
body.classList.remove('block-scroll');
});
});
})