Smooth scrolling is not working when nav bar is fixed

I’m trying to create a smooth scroll when the navbar is static and fixed. It’s working fine the nav is static but not working when the nav is fixed.
[I’ve added custom to create the functionality]

Thank you so much :slight_smile:

Try to achieve the same positioning with Sticky to see if it solves the smooth scrolling. But I wouldn’t be surprised if the browser was incapable to know from where to scroll from when you remove an element from the flow of elements, using fixed or sticky.

I have found a solution using locomotive-scroll.
Please watch this video :

(Video timestamped at the exact solution)