GodUI

Holographic Card

A trading-card holo effect — iridescent foil, specular glare, and glitter that tilt and shift with the pointer or device gyroscope.

Founding Member

GodUI

Move your pointer across the card — the foil, glare, and glitter catch the light as it tilts.

NO. 001 / 500

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/holographic-card.json"

The pointer position is normalized over the card and spring-mapped to rotateX / rotateY on a perspective container. The same value drives a CSS variable that shifts the iridescent foil, the glitter mask, and a specular glare — so the whole surface reacts to a single gesture, like a real foil card catching the light. Set gyroscope to drive the tilt from the device on touch screens. It eases back to rest on leave, and renders as a still card under prefers-reduced-motion.

Usage

tsx
 
import { HolographicCard } from "@/components/godui/holographic-card";
tsx
 
<HolographicCard variant="rainbow" className="w-72 p-6">
  <h3>Title</h3>
  <p>Body copy</p>
</HolographicCard>

Colorways

Props

PropTypeDefaultDescription
variant"rainbow" | "aurora" | "galaxy" | "gold""rainbow"Foil colorway.
maxTiltnumber14Maximum tilt in degrees toward the pointer.
glarebooleantrueRender a specular glare that tracks the pointer.
sparklebooleantrueOverlay a fine glitter mask for a holo-flake finish.
gyroscopebooleanfalseDrive the tilt from the device gyroscope on touch.

HolographicCard also forwards every standard <div> attribute to the root element.

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub