adative
This commit is contained in:
@@ -95,4 +95,11 @@ window.addEventListener('scroll', () => {
|
||||
} else {
|
||||
header.style.boxShadow = 'none';
|
||||
}
|
||||
}, { passive: true });
|
||||
|
||||
// ===== Close mobile nav on resize past breakpoint =====
|
||||
window.addEventListener('resize', () => {
|
||||
if (window.innerWidth > 960 && mobileNav.classList.contains('active')) {
|
||||
closeMobileNav();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user