Facing problem in inpage navigation scroll effect
I’m trying to create an in-page navigation using tabs. I have 4 tabs, and there’s an underline below the tabs that moves based on the scroll position of the page — which is working fine. However, I’m facing an issue when trying to reverse scroll from the third section to the second section using a range. The border automatically jumps to the second tab by default.
I’ve also attached the file for reference. Kindly help me with this.