Component packs › Pulltab › Lift-flap Card

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.

Lift-flap Card props

PropTypeDefaultDescription
questionstringOn the flap (HTML).
answerstringUnder the flap (HTML).
openboolean
onChange(open: boolean) => void
darkboolean
autoplaynumber | falseShowcase mode: lifts and drops every N ms.

Methods on the ref

Use it in React

import LiftFlap from './LiftFlap';

<LiftFlap />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Pulltab

Good for: Skeuomorphic UI.