Automatically cycle tab element

I have a tab element with 4 items/tabs.

I would like for each of the tabs to be shown automatically like in a carousel. But each tab can still be selected individually.

Something very similar to this example https://codepen.io/filipemcribeiro/pen/oxXZLr

Thanks in advance