Ferro

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-ferro

About this component

Speaker tabs over a backlit tray of ferrofluid. A magnet under the picked tab pulls the fluid into a crown of glossy spikes, and switching drags the magnet along so the spikes sink behind it and rise ahead.

Triggers

  • Click
  • State change
  • Ambient

Techniques

  • @property
  • clip-path
  • CSS variables
  • CSS transition
  • Keyframes

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A WAI-ARIA tablist (aria-label "Band") of buttons with role="tab", aria-selected and aria-controls, a roving tabindex, Left and Right arrow keys plus Home and End, and one tabpanel per tab; :focus-visible outlines the tab. Every drawn part is aria-hidden.

Reduced motion

The magnet moves at once and the spikes stop quivering.

Use it in anything you build, commercial and client work included. Licence

More tabs

See all
FringeGet code
GlitchGet code
GouacheGet code
GuillochéGet code