Animated Background — sliding highlight for tabs and segmented controls

One shared background sits behind the active option and glides to the new one with a soft spring when the selection changes, which suits monthly/yearly pricing toggles, tabs and segmented controls. With enableHover the background follows the pointer instead, for navigation menus. Each child is identified by data-id, the default option and the transition are configurable, and onValueChange reports the selection.

Animated Background — sliding highlight for tabs and segmented controls | Hub Design

Contact: info@hubdesign.ir · 0211733

Author: Mohammad Barotuiha