In this video, I’ll show you a great way to dynamically adjust behavior based off the height of your nav bar. This is especially helpful for position fixed navs that scroll over your content.

In this video:
• Scroll-behavior: smooth
• Scroll-padding-top
• Resize event listener

Other videos mentioned:
• Intersection Observer Nav: https://youtu.be/noBm_S4IKr0
• ParcelJS (how I set up the project to build): https://youtu.be/1EoXIkgYgDw

#javascript #css

Dynamically Get Nav Height with Javascript and CSS Variables
1.10 GEEK