I’m looking for solution for dynamic change of scroll offset when select section from navbar.
Now I have navbar that initial appearance is 100px but after hero section it changes to 60px. When I want to navigate to other section from hero part scroll offset is set to 100px even when navbar size has changed to 60px leaving 40px space.
I know about custom attributes like
data-scroll-time or center a section with
data-scroll but maybe there is something like