Reversible Hologram Card
A card with a holographic film overlay that shifts between two distinct images based on viewing angle. Hovering tilts the card to reveal the hidden hologram layer. Clicking reverses the hologram, swapping between two complete card designs with a shimmering transition.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/reversible-hologram-card.
<iframe src="/embed/reversible-hologram-card" sandbox="allow-scripts" loading="lazy" title="Reversible Hologram Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Reversible Hologram Card, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.
HTML
<div class="holo-card">
<div class="holo-film"></div>
<div class="holo-layer holo-front">
<div class="holo-icon">🔷</div>
<div class="holo-title">Holo Card</div>
<div class="holo-sub">Front Face</div>
</div>
<div class="holo-layer holo-back">
<div class="holo-icon">🔶</div>
<div class="holo-title">Reverse Card</div>
<div class="holo-sub">Back Face</div>
</div>
<div class="holo-content">
<div class="holo-badge">HOLOGRAPHIC</div>
</div>
</div>CSS
.holo-card { position: relative; width: 220px; min-height: 290px; border-radius: 12px; background: linear-gradient(145deg, #0a0a14, #04040a); border: 1.5px solid rgba(200,180,255,0.15); overflow: hidden; cursor: pointer; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.holo-card:hover { transform: rotateY(15deg); }
.holo-card.holo-reversed:hover { transform: rotateY(-15deg); }
.holo-film { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(135deg, rgba(255,180,255,0.08), rgba(180,255,255,0.08), rgba(255,255,180,0.08)); opacity: 0.5; transition: opacity 0.3s; }
.holo-card:hover .holo-film { opacity: 0.8; background: linear-gradient(135deg, rgba(255,100,255,0.15), rgba(100,255,255,0.15), rgba(255,255,100,0.15)); }
.holo-layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s; }
.holo-front { opacity: 1; z-index: 1; }
.holo-back { opacity: 0; z-index: 0; }
.holo-card.holo-reversed .holo-front { opacity: 0; }
.holo-card.holo-reversed .holo-back { opacity: 1; }
.holo-icon { font-size: 36px; }
.holo-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); margin-top: 8px; }
.holo-sub { font-size: 10px; color: rgba(200,180,255,0.5); }
.holo-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); }
.holo-badge { font-size: 7px; font-weight: 700; letter-spacing: 0.3em; color: rgba(200,180,255,0.4); }Tailwind CSS
<div class="group relative w-[220px] min-h-[290px] rounded-xl bg-gradient-to-br from-[#0a0a14] to-[#04040a] border border-indigo-500/30 overflow-hidden cursor-pointer [transform-style:preserve-3d] transition-transform duration-500 group-hover:rotateY-[15deg]">
<div class="absolute inset-0 z-[3] pointer-events-none bg-gradient-to-br from-pink-500/10 via-cyan-500/10 to-yellow-500/10 opacity-50 transition-opacity group-hover:opacity-80"></div>
<div class="absolute inset-0 flex flex-col items-center justify-center z-[1] opacity-100 group-[.reversed]:opacity-0 transition-opacity">
<span class="text-4xl">🔷</span>
<p class="text-sm font-bold text-white/90 mt-2">Holo Card</p>
<p class="text-[10px] text-indigo-500/50">Front Face</p>
</div>
<div class="absolute inset-0 flex flex-col items-center justify-center z-0 opacity-0 group-[.reversed]:opacity-100 transition-opacity">
<span class="text-4xl">🔶</span>
<p class="text-sm font-bold text-white/90 mt-2">Reverse Card</p>
<p class="text-[10px] text-indigo-500/50">Back Face</p>
</div>
<div class="absolute inset-x-0 bottom-0 z-10 p-4 bg-gradient-to-t from-black/60 to-transparent">
<p class="text-[7px] font-bold tracking-widest text-indigo-500/40">HOLOGRAPHIC</p>
</div>
</div>React
import React, { useRef, useState } from 'react';
import { motion } from 'framer-motion';
export function ReversibleHologramCard({ width = 220 }) {
const ref = useRef(null);
const [reversed, setReversed] = useState(false);
const [isHovered, setIsHovered] = useState(false);
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
<motion.div ref={ref} onClick={() => setReversed(!reversed)}
animate={{ rotateY: reversed ? -15 : isHovered ? 15 : 0 }}
transition={{ type: 'spring', stiffness: 200, damping: 18 }}
style={{ transformStyle: 'preserve-3d' }} className="relative cursor-pointer" style={{ width }}>
<motion.div className="relative overflow-hidden rounded-xl" style={{ minHeight: 290, background: 'linear-gradient(145deg, #0a0a14, #04040a)', border: '1.5px solid rgba(200,180,255,0.15)' }}>
<motion.div className="absolute inset-0 z-[3] pointer-events-none"
style={{ background: 'linear-gradient(135deg, rgba(255,180,255,0.08), rgba(180,255,255,0.08), rgba(255,255,180,0.08))' }}
animate={{ opacity: isHovered ? 0.8 : 0.5 }}>
<motion.div className="absolute inset-0" style={{ background: 'linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.1) 45%, transparent 60%)' }}
animate={{ x: isHovered ? ['-100%', '200%'] : ['-100%', '-100%'] }} transition={{ x: isHovered ? { duration: 2, repeat: Infinity, ease: 'linear' } : {} }} />
</motion.div>
<motion.div className="absolute inset-0 flex flex-col items-center justify-center"
animate={{ opacity: reversed ? 0 : 1 }}>
<span className="text-4xl">🔷</span>
<p className="text-sm font-bold mt-2" style={{ color: 'rgba(255,255,255,0.9)' }}>Holo Card</p>
</motion.div>
<motion.div className="absolute inset-0 flex flex-col items-center justify-center"
animate={{ opacity: reversed ? 1 : 0 }}>
<span className="text-4xl">🔶</span>
<p className="text-sm font-bold mt-2" style={{ color: 'rgba(255,255,255,0.9)' }}>Reverse Card</p>
</motion.div>
<div className="absolute inset-x-0 bottom-0 z-10 p-4" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.6), transparent)' }}>
<p className="text-[7px] font-bold tracking-widest" style={{ color: 'rgba(200,180,255,0.4)' }}>HOLOGRAPHIC</p>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Reversible Hologram Card fits
- Holographic Displays
- Security Cards
- Authentication UI
- Premium Badges
- Collector Cards
Interaction states & animations
- Holographic tilt shift
- Dual-image crossfade
- Rainbow film shimmer
- Angle-based reveal
- Shimmer sweep
Topics
- #hologram
- #holographic
- #shimmer
- #rainbow
- #reversible
- #tilt
- #shift
- #premium
- #shiny
- #iridescent
Accessibility notes
Holographic shimmer may be distracting or trigger photosensitivity. prefers-reduced-motion disables shimmer animation. Dual images accessible via click.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+