Component packs › Pulltab › Lift-flap Card
Drag the flap up and it follows your hand in 3D, its shadow sliding over the answer; past upright it falls back over the hinge and stays.
Lift-flap Card is a disclosure from Pulltab, a component pack with 6 paper mechanisms: Reveals, pickers and tabs built like pop-up book mechanisms: pull, lift, turn and unfold. Price: $2 for the whole pack.
Built with: hinged 3D flap, moving cast shadow, drops shut with a bounce.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
question | string | On the flap (HTML). | |
answer | string | Under the flap (HTML). | |
open | boolean | ||
onChange | (open: boolean) => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: lifts and drops every N ms. |
readonly open: booleansetOpen(v: boolean): voiddestroy(): voidimport LiftFlap from './LiftFlap';
<LiftFlap />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.