How to create a navbar that slides down when scrolling and then stays at a fixed position at a certain height.
This is a popular feature found on many professional websites.
Key concepts covered:
document.getElementById()
getFullYear()
getBoundingClientRect()
slice method
window.scrollTo()
✏️ Course created by John Smilga. Check out his YouTube channel: https://www.youtube.com/codingaddict