I want to get an animation effect when someone clicks on a tab, and the frame below this tab slides to the right, while the button has a nice ripple effect. I do not want to use the content inside the tab, I just want the effect of the tab.

As you can see, clicking on the second tab will make the frame slide to the right, but the content will also move to the left. I want the tab button to slide to the right as part of my effect. How can I achieve this?
source share