Tabs with offset position on hover and active state

Hi,

I would like the tabs to respond to a specific offset based on their position.

When I hover on the left side of the tab, the indicator comes from the left in the -16 to 0 position, and when I hover on the right side of the tab, the indicator comes from the right in the +16 to 0 position.

I managed to do it for the active state, but I can not figure out how to do it for mouse over/out.

Video attached.

Tabs-offset-Pos.mp4