Flap

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-flap

About this component

A split-flap countdown board: days, hours, minutes and seconds on matte black flaps whose top halves fold down over the bottom halves with real perspective, while a glossy 3D rocket rides a rail toward its planet as the wait runs out. Press the board to roll over to the next event and every flap flips through to the new numbers.

Triggers

  • Card
  • Click
  • State change
  • 3D
  • Delay stagger
  • Continuous

Techniques

  • Keyframes
  • Perspective
  • 3D transform
  • Interval
  • Stagger
  • CSS variables
  • SVG

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native button whose label gives the event and the days, hours and minutes left and says a press shows the next event; the board and rail are aria-hidden, and a visually hidden status line carries the event and the days and hours.

Reduced motion

The numbers change without the flip and the rocket jumps.

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

More cards

See all
ForecastGet code
HomeGet code
MascotGet code
PairGet code