Folio

Final reel

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-folio

About this component

A card cut from three sheets of tinted paper, stacked like a browser window made of card stock, each with its own tab along the top edge. Press a tab and its sheet comes to the front: it rises and settles with a spring, the tabs re-stack in depth with the front one taking its sheet's paper and the others stepping back a shade, and the title, rule and picture arrive a beat apart.

Triggers

  • Card
  • Click
  • State change
  • Spring
  • Delay stagger
  • Hover

Techniques

  • CSS variables
  • CSS transition
  • Keyframes
  • SVG
  • Transition delay stagger
  • Pseudo elements

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A section labelled Project folio holding a tablist of three native buttons with role tab, aria-selected and aria-controls, on a roving tabindex: Left and Right arrows, Home and End move and select. Each sheet is a tabpanel labelled by its tab; the two behind are aria-hidden and their content is not rendered visible. The focus ring is drawn round the tab label. Pictures are decorative (empty alt).

Reduced motion

The sheets and tabs change without transitions, the rise and the stagger.

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

More cards

See all
ForecastGet code

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

FreezeGet code
HomeGet code
IndexGet code