A brushed-titanium payment card that tracks the cursor and slides a soft holographic specular band across its surface, with a Fresnel rim that brightens toward the pointer. It drops into checkout, wallet, and account screens to make a static card asset feel physically present without any WebGL.
// Drop the standalone titanium-card-sheen.html into /public/effects/titanium-card-sheen.html
// Or copy the HTML/CSS/JS tab directly into your component — zero external dependencies.
export function TitaniumCardSheenEmbed() {
return (
<div className="relative min-h-[480px] w-full overflow-hidden rounded-2xl border border-white/10">
<iframe
src="/effects/titanium-card-sheen.html"
title="Titanium Card Sheen"
className="h-full min-h-[480px] w-full border-0"
loading="lazy"
/>
</div>
)
}Loading single-file HTML…
Build a zero-dependency "Titanium Card Sheen" component: a single dark-obsidian FinTech surface (#0a0f1d) containing one credit-card-shaped panel (aspect-ratio 1.586, max-width 420px) with a brushed-metal base built from layered repeating-linear-gradients at 105deg and a soft pearl highlight. Interaction: on pointermove over the card, compute normalized cursor coords (nx, ny in 0..1) and write them to CSS custom properties --mx and --my. Use them to drive (1) a radial "Fresnel rim" glow that follows the pointer (radial-gradient at calc(var(--mx)*100%) calc(var(--my)*100%), accent #635bff fading to transparent at 60%), and (2) a diagonal specular band (linear-gradient at 115deg, transparent → rgba(255,255,255,.28) → transparent) whose position is offset by the cursor via translateX(calc((var(--mx) - .5) * 120%)) inside an overflow-hidden wrapper. Add a subtle 3D tilt: rotateX((ny-.5)*-10deg) rotateY((nx-.5)*14deg) with perspective 900px on the parent, and a holographic sheen layer using conic-gradient from #00d4ff through #635bff to #ff7ad9 at low opacity blended with mix-blend-mode:screen and masked by the same radial so it only glints near the cursor. On pointerleave, spring the tilt back to 0 with a CSS transition (transform .5s cubic-bezier(.2,.9,.2,1)). Card content: a tabular balance (font-variant-numeric: tabular-nums), a masked 16-digit number, chip glyph as inline SVG, and a small animated spend bar. Mobile: on touch, use pointerdown/pointermove (touch-action: none) to sweep the band, and reset on pointerup. Wrap all motion in @media (prefers-reduced-motion: reduce) to kill tilt and transitions, leaving only a static gradient. Expose CSS vars --accent and --accent2, listen for window message prompt-lab-theme to update them. Keep total under ~16 KB, 60fps, no libraries.
WHY THIS WORKS IN PRODUCTION
- Cursor-driven radial Fresnel rim + diagonal specular band, pure CSS vars
- Pointer tilt with spring-back on leave; touch sweep via pointer events
- Holographic conic sheen masked to the pointer, mix-blend screen at low opacity
- prefers-reduced-motion strips tilt, leaving a calm static gradient
DROP-IN SPECS // WEB & MOBILE FIT






