Back to Pack Gallery
Motion Pack 05 · Choice

Workspace switch

When switching context, keep the active tab and content surface on one continuous focus path.

Live previewWorkspace switch
Design spaceDesign system
Design Selected

Build a workspace switcher: clicking a tab moves the active pill to it, while the content surface swaps with a very short fade and upward settle. Keep tab semantics and a reduced-motion treatment.

Motion rules

The active pill lands first, then content changes within the same context.

Reduced motion

Update tab and content directly while retaining keyboard focus.

Implementation

Copy HTML, CSS, and the JavaScript required for behavior together.