Green underline is a border-bottom to each tab. You need to make it so that when you switch the hell are smoothly passed to the active tab.
Do with js and span for example, or in any way. You can of course and with a border-bottom isralites, but why?
Catch the click on the taboo read the width of the links to the tab and its position, shape animation.