Seesaw
Full mix, all tracks
Lead and backing vocals
Piano and synth pads
Kit and percussion
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initTabsSeesaw(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/tab-seesawAbout this component
A thick slab of amber-tinted glass balanced like a seesaw: choosing a tab presses it into the glass and tips the slab toward it, so the light rolls across the surface to the other side and the slab rocks to rest.
Triggers
- Click
- State change
- 3D
Techniques
- Perspective
- 3D transform
- CSS transition
- Gradient
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
A WAI-ARIA tablist (aria-label "Stems") of buttons with role="tab", aria-selected and aria-controls, a roving tabindex, arrow keys plus Home and End, and one tabpanel per tab; :focus-visible outlines the tab.
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence