Reflection

This year’s models, with three years of servicing.
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-reflection

About this component

Car tabs standing on a glossy showroom floor: the row and its pill are reflected underneath, and every switch sets the reflection rippling as the pill glides across, before the floor goes still again.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers2

  • Click
  • State change

Techniques3

  • CSS transition
  • Keyframes
  • Gradient

Accessibility

Keyboard and screen readers

Real ARIA tabs: arrow keys, Home and End move between tabs, only the selected tab is in the Tab order, and each panel is labelled by its tab. Decoration is aria-hidden.

Reduced motion

The floor holds still.

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

More tabs

See all
Hand-built and coiled, fired twice in the studio kiln.
ReliefGet code
Just you against the clock, ten rounds.
RicochetGet code
Nine new tasks, three of them due this week.
SagGet code
The front page and everything else since this morning.
ShearGet code