diff --git a/index.html b/index.html index e0d6d36..b72f675 100644 --- a/index.html +++ b/index.html @@ -187,9 +187,9 @@ - +
+ +
diff --git a/src/js/ui/displayHeaderOnScrollUp.mjs b/src/js/ui/displayHeaderOnScrollUp.mjs index d9fb2ac..ff08ad3 100644 --- a/src/js/ui/displayHeaderOnScrollUp.mjs +++ b/src/js/ui/displayHeaderOnScrollUp.mjs @@ -3,9 +3,8 @@ const headerBar = document.querySelector(".header-bar"); export const displayHeaderOnScrollUp = () => { // Keep track of last scroll position - console.log(window.scrollY); - let lastScroll = 0; + if (window.scrollY > 100) { headerBarContainer.classList.add("scroll-down"); }