Skip to content
- Choosing a selection results in a full page refresh.
- Opens in a new window.
const header = document.querySelector(".header_full");
const maxTop = 40;
window.addEventListener("scroll", () => {
let scrollY = window.scrollY;
let newTop = Math.max(maxTop - scrollY, 0);
header.style.top = newTop + "px";
});