Closed Abdeboskey closed 1 year ago
The header should hide when a same-page navigation link is clicked.
Look into Window.scrollBy() to trigger the window to scroll by a certain amount of pixels on click.
Window.scrollBy()
MDN Source
The answer was actually Element.scrollIntoView()
Element.scrollIntoView()
The header should hide when a same-page navigation link is clicked.
Look into
Window.scrollBy()
to trigger the window to scroll by a certain amount of pixels on click.MDN Source