Zigzag

Low sun from the east, long shadows on the lawn.
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/tab-zigzag

About this component

Times of day as the panels of a folding screen: the chosen panel faces you flat and lit while the others zigzag back from it on their hinges, and picking another refolds the screen around the new panel.

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

Triggers4

  • Click
  • State change
  • 3D
  • Spring

Techniques3

  • Perspective
  • 3D transform
  • CSS transition

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 panels take their new angles without swinging.

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

More tabs

See all
Lemon sponge, lemon curd and a sharp glaze.
CakeGet code
Cookie CutterGet code
Four desks by the window, booked by the hour.
ElevatorGet code
Tench under the pads. Fish it slowly in the evening.
FishingGet code