Skip to main content
Question

Tab navigation that changes states and scrolls on click

  • December 14, 2022
  • 0 replies
  • 781 views

Caro1

Hi, I am trying to create a navigation bar with tabs that will change states to highlight the tab someone is on, while at the same time scrolling down to a certain point in a frame. So if a user presses “Tab 2”, then on click the tab is highlighted and the frame below scrolls to a certain point.

I tried creating the whole tab as a component with different states and then adding the component above the frame and adding the scroll on click to it. But once I add the scroll it overrides the state change.

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings