Smooth animation when clicking on tabs

Hello,

I’m trying to achieve a similar animation to what can be seen on this website. I’m purely interested in the effect where the progress bar gets extended and then smoothly slides from one tab to the desired (clicked) one.

Could anyone point me in the right direction? I’d be very thankful.

Link to my codepen