Dividers

Motion

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-dividers

About this component

A green folder holding five tan index dividers, their tabs staggered across its width so every label shows and each tab stands on its own sheet. Press a tab and that divider lifts out of the stack with its paper curling a little and a deeper shadow under it, the dividers behind it rising half as far so their tabs stay clear, while the folder's front prints its title large; arrow keys walk the tabs.

Triggers

  • Card
  • Click
  • State change
  • 3D
  • Spring

Techniques

  • CSS variables
  • CSS transition
  • 3D transform
  • Perspective
  • Gradient
  • Pseudo elements
  • clip-path

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A section labelled Services folder. The dividers are five native buttons in a group labelled Dividers, each exposing aria-pressed; the chosen one's label is printed in a polite live region on the folder front, so a change is announced. Arrow keys move the choice and the focus; the focus ring is drawn on the tab.

Reduced motion

The lift and the title change are cuts.

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

More cards

See all
FlapGet code

Final reel

FolioGet code
ForecastGet code

••••••••••••4821

FreezeGet code