Mist

12 new conversations

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-mist

About this component

A vertical list of tabs on a misted pane of glass over colour: choosing one wipes its row clear like a finger across a steamed window, the colour behind showing through bright with a few beads of water left along the edge, while the last row slowly mists over again.

Triggers

  • Click
  • State change
  • Ambient

Techniques

  • clip-path
  • Filter
  • CSS transition
  • Gradient

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Mailboxes") of buttons with role="tab", aria-selected and aria-controls, a roving tabindex, up and down arrow keys (aria-orientation="vertical") 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

2,418 photos

ReedGet code

Lead and backing vocals

SeesawGet code
Reception, the cafe and the cloakroom by the lifts.
BacklitGet code
Every hour since midnight, with the busiest marked.
BarrelGet code