#6 - debug logo anim

This commit is contained in:
isUnknown 2024-11-04 14:16:16 +01:00
parent 6609b5cf7c
commit 11b52796e8
3 changed files with 24 additions and 6 deletions

View file

@ -47,11 +47,11 @@ document.addEventListener("DOMContentLoaded", () => {
closeNav(nodes);
}
if (
(window.scrollY > 120) &
window.scrollY > 130 &&
!nodes.nav.classList.contains("main-nav--small")
) {
nodes.nav.classList.add("main-nav--small");
} else if (window.scrollY < 100) {
} else if (window.scrollY < 90) {
nodes.nav.classList.remove("main-nav--small");
}
});