mirror of
https://github.com/helenclx/leilukin-site.git
synced 2025-03-13 02:37:15 +00:00
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…
x
Reference in New Issue
Block a user