A card that tilts toward the cursor while its layers float at different depths, so each moves at its own speed.
A metallic rainbow foil that shifts and shimmers as the pointer moves, like a holographic trading card.
Customize
Usage
import { HolographicCard } from "@/components/motionkit/holographic-card";
<HolographicCard className="w-72">
<p>Founding member</p>
<h3>No. 0042</h3>
</HolographicCard>Motion
The exact curves this component runs, plotted with Motion's own maths.
Tilt and foil
Pointer moves over the card
Membership cards, collectibles, launch tickets and "you unlocked it" moments: anywhere a little delight beats restraint.
A repeating rainbow gradient three times the card's size slides as the pointer moves, so the colour bands sweep across the surface. A radial mask shows the bright bands only around the pointer, like light catching foil, while a faint copy covers the whole card so it reads as foil even at rest. Fine diagonal lines add the grain of a printed hologram, and the card tilts gently on springs.
| Prop | Type | Default | Description |
|---|---|---|---|
| intensity | number | 0.6 | 0–1. Strength of the rainbow foil. |
| tilt | number | 10 | Maximum rotation in degrees. 0 keeps it flat. |
| children | ReactNode | — | Card content. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/holographic-card. It saves the file to components/motionkit and installs its dependencies.
Holographic Card is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, the card does not tilt and the foil stays still.
A card that tilts toward the cursor while its layers float at different depths, so each moves at its own speed.
A card with a soft glow that tracks the pointer across its surface.
A 3D card that tilts toward the pointer, with an optional moving glare.
Founding member
No. 0042
Move your pointer across
The live preview is free to explore. Plus unlocks the source for Holographic Card and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { HolographicCard } from "@/components/motionkit/holographic-card";
<HolographicCard className="w-72">
<p>Founding member</p>
<h3>No. 0042</h3>
</HolographicCard>Motion
The exact curves this component runs, plotted with Motion's own maths.
Tilt and foil
Pointer moves over the card
Founding member
No. 0042
Move your pointer across