127 Components
Holographic Flip Card
CardsDual-sided 3D interactive card combining spring-damped perspective tilt, specular foil glare tracking, and a 180-degree Y-axis kinetic flip.
Installation
Install directly into your project using the shadcn CLI or copy the source code manually.
Requires:framer-motionlucide-reactclsxtailwind-merge
$npx shadcn@latest add "https://boseui.site/r/holographic-flip-card.json"
Props
TypeScript props supported by <HolographicFlipCard />.
| Prop | Type | Default | Description |
|---|---|---|---|
| front | React.ReactNode | — | Optional custom React node rendered on the front face. |
| back | React.ReactNode | — | Optional custom React node rendered on the back face. |
| maxTilt | number | 12 | Maximum 3D tilt angle in degrees along X and Y axes. |
| stiffness | number | 220 | Hooke's Law spring stiffness for 3D tilt and 180° flip. |
| damping | number | 22 | Spring damping coefficient controlling rotational oscillation. |
Key Features
- Couples continuous pointer tilt (±maxTilt degrees) with a 180° Y-axis flip in a single unified spring system.
- GPU-composited radial specular foil glare tracked via Framer Motion useMotionTemplate.
- True 3D preserve-3d backface culling for crisp front and back surfaces.
Keyboard & Accessibility
- Implements role='button' with aria-pressed state and descriptive aria-label announcing current card face.
- Supports Enter and Space keys to flip between front and back faces.
- Disables continuous 3D tilt rotation when prefers-reduced-motion is active.