Seesaw

Lead and backing vocals

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-seesaw

About 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

More tabs

See all
Reception, the cafe and the cloakroom by the lifts.
BacklitGet code
Every hour since midnight, with the busiest marked.
BarrelGet code
A container that clips its children and sets the grid.
BoundsGet code
A pale green-grey glaze that pools in the carving.
CeramicGet code