Components

Hologram Card

A holographic card for React: a faint iridescent sheen and a soft 1px rim that shift as the card tilts gently in 3D. Built with Motion springs and Tailwind CSS, for event passes, profile cards and collectibles.

  • 3D tilt
  • Iridescent foil
  • Motion values
  • Mouse only
  • Reduced-motion safe

Access pass

Dusk Conf 2026

Mira Okafor

Speaker · All areas

#0042

Installation

$ npx shadcn@latest add https://duskui.com/r/hologram-card.json

Usage

pass.tsx
import { HologramCard } from "@/components/dusk/techy/hologram-card"

export function Pass() {
  return (
    <HologramCard className="w-80">
      <p className="text-lg font-semibold">Dusk Conf 2026</p>
      <p className="text-sm text-white/60">All-access pass</p>
    </HologramCard>
  )
}

Examples

Profile card

The card is a plain container, so any content works: avatars, stats, badges.

KN

Kai Nakamura

Open-source maintainer

Commits
4,218
Streak
132d
Repos
38

Subtle & flat

Use a smaller maxTilt, or 0 for a flat card. scanlines adds faint static lines over the foil.

Scanlines

maxTilt=4 with faint static scanlines.

Flat foil

No tilt. The foil sheen still shifts with the pointer.

API Reference

Accepts every motion.div prop. Your onPointerMove and onPointerLeave handlers still run; style is merged after the tilt.

PropTypeDefaultDescription
maxTiltnumber6Maximum tilt in degrees; 0 disables it.
scanlinesbooleanfalseShow faint, static scanlines over the foil.
classNamestring—Merged onto the card; set width, padding and layout here.

Accessibility

  • Every effect layer is aria-hidden and pointer-events-none; only your content is exposed to assistive tech.
  • Effects sit behind the content at low opacity, so text contrast is preserved.
  • Tilt follows a mouse only; touch users scroll normally without the card moving.
  • With prefers-reduced-motion the card is fully static: no tilt and no foil shift.