Increase navbar sticky line
This commit is contained in:
parent
837e5e947a
commit
9d550cae71
|
@ -60,7 +60,7 @@
|
|||
window.addEventListener("scroll", () => {
|
||||
const scrollPosition = window.scrollY || document.documentElement.scrollTop;
|
||||
const stickyLine = hero.scrollHeight - navbar.scrollHeight;
|
||||
if (scrollPosition > stickyLine + 55) {
|
||||
if (scrollPosition > stickyLine + 100) {
|
||||
navbar.classList.add("nav--sticky");
|
||||
} else {
|
||||
navbar.classList.remove("nav--sticky");
|
||||
|
|
Loading…
Reference in New Issue