Floating Hologram Card
A futuristic holographic card that appears projected in mid-air. Features transparent layers with neon borders, animated gradients, RGB reflections, and sci-fi lighting effects. The hologram flickers and stabilizes on hover.
Floating Hologram Card
by FreeCsStyles Dev's
CardsHologram
🌐HTML/CSS🎨Tailwind⚛️React💚Vue🅰️Angular🔥Svelte☁️LWC
#hologram#holographic#cyberpunk#sci-fi#futuristic#neon#rgb#projection#glow#tech
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/floating-hologram-card.
<iframe src="/embed/floating-hologram-card" sandbox="allow-scripts" loading="lazy" title="Floating Hologram Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Floating 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="hologram-card">
<div class="hologram-glow"></div>
<div class="hologram-frame">
<div class="hologram-top-bar"></div>
<div class="hologram-content">
<div class="hologram-header">
<div class="hologram-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="#a78bfa" stroke-width="1.5">
<path d="M12 2L2 7l10 5 10-5-10-5z"/>
<path d="M2 17l10 5 10-5"/>
<path d="M2 12l10 5 10-5"/>
</svg>
</div>
<div class="hologram-status"></div>
</div>
<div class="hologram-lines">
<div class="h-line"></div>
<div class="h-line short"></div>
</div>
<div class="hologram-bars">
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
<div class="h-bar"></div>
</div>
<div class="hologram-tags">
<span class="holo-tag">AI</span>
<span class="holo-tag">NEO</span>
</div>
</div>
<div class="hologram-bottom-bar"></div>
</div>
<div class="scan-line"></div>
<div class="flicker-overlay"></div>
</div>CSS
.hologram-card {
position: relative;
width: 220px;
}
.hologram-glow {
position: absolute;
inset: -40px;
border-radius: 50%;
background: radial-gradient(circle, rgba(168,85,247,0.1), transparent 70%);
filter: blur(20px);
z-index: -1;
animation: pulse-glow 3s ease-in-out infinite;
}
.hologram-frame {
position: relative;
border-radius: 12px;
overflow: hidden;
background: linear-gradient(135deg, rgba(168,85,247,0.05), rgba(6,182,212,0.03));
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(168,85,247,0.25);
box-shadow: 0 0 15px rgba(168,85,247,0.1);
transition: all 0.4s ease;
}
.hologram-card:hover .hologram-frame {
box-shadow: 0 0 30px rgba(168,85,247,0.2), inset 0 0 30px rgba(168,85,247,0.05);
transform: translateY(-5px);
}
.hologram-card:hover .hologram-glow {
animation: pulse-glow-intense 2s ease-in-out infinite;
}
.hologram-top-bar {
height: 2px;
background: linear-gradient(90deg, transparent, #a78bfa, #22d3ee, #a78bfa, transparent);
}
.hologram-bottom-bar {
height: 2px;
background: linear-gradient(90deg, transparent, #22d3ee, #a78bfa, transparent);
}
.hologram-content {
padding: 20px;
}
.hologram-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.hologram-icon {
width: 40px;
height: 40px;
border-radius: 8px;
background: rgba(168,85,247,0.1);
border: 1px solid rgba(168,85,247,0.3);
display: flex;
align-items: center;
justify-content: center;
}
.hologram-icon svg {
width: 20px;
height: 20px;
}
.hologram-status {
width: 8px;
height: 8px;
border-radius: 50%;
background: #22d3ee;
box-shadow: 0 0 6px rgba(6,182,212,0.6);
animation: pulse-dot 2s ease-in-out infinite;
}
.hologram-lines {
margin-bottom: 16px;
}
.h-line {
height: 10px;
border-radius: 4px;
margin-bottom: 6px;
background: linear-gradient(90deg, rgba(168,85,247,0.3), rgba(6,182,212,0.15));
animation: holo-pulse 2s ease-in-out infinite;
}
.h-line.short {
width: 60%;
background: linear-gradient(90deg, rgba(168,85,247,0.15), transparent);
}
.hologram-bars {
display: flex;
gap: 6px;
margin-bottom: 16px;
}
.h-bar {
flex: 1;
height: 48px;
border-radius: 2px;
background: linear-gradient(180deg, rgba(168,85,247,var(--bar-opacity, 0.3)), rgba(6,182,212,var(--bar-opacity-2, 0.15)));
border: 1px solid rgba(168,85,247,0.15);
animation: bar-dance 2s ease-in-out infinite;
}
.h-bar:nth-child(1) { --bar-opacity: 0.2; --bar-opacity-2: 0.1; animation-delay: 0s; }
.h-bar:nth-child(2) { --bar-opacity: 0.24; --bar-opacity-2: 0.12; animation-delay: 0.15s; }
.h-bar:nth-child(3) { --bar-opacity: 0.28; --bar-opacity-2: 0.14; animation-delay: 0.3s; }
.h-bar:nth-child(4) { --bar-opacity: 0.32; --bar-opacity-2: 0.16; animation-delay: 0.45s; }
.h-bar:nth-child(5) { --bar-opacity: 0.36; --bar-opacity-2: 0.18; animation-delay: 0.6s; }
.h-bar:nth-child(6) { --bar-opacity: 0.4; --bar-opacity-2: 0.2; animation-delay: 0.75s; }
.h-bar:nth-child(7) { --bar-opacity: 0.36; --bar-opacity-2: 0.18; animation-delay: 0.9s; }
.h-bar:nth-child(8) { --bar-opacity: 0.28; --bar-opacity-2: 0.14; animation-delay: 1.05s; }
.hologram-tags {
display: flex;
gap: 8px;
}
.holo-tag {
height: 20px;
padding: 0 10px;
border-radius: 2px;
display: flex;
align-items: center;
font-size: 8px;
font-weight: 700;
letter-spacing: 2px;
color: #a78bfa;
background: rgba(168,85,247,0.12);
border: 1px solid rgba(168,85,247,0.2);
}
.scan-line {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 10;
background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(168,85,247,0.08) 2px, rgba(168,85,247,0.08) 3px);
animation: scan 3s linear infinite;
}
.flicker-overlay {
position: absolute;
inset: 0;
pointer-events: none;
z-index: 10;
background: linear-gradient(135deg, rgba(168,85,247,0.03), transparent);
animation: flicker 4s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; transform: scale(1.1); }
}
@keyframes pulse-glow-intense {
0%, 100% { opacity: 0.8; transform: scale(1.2); }
50% { opacity: 1; transform: scale(1.4); }
}
@keyframes pulse-dot {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}
@keyframes holo-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.7; }
}
@keyframes bar-dance {
0%, 100% { height: 40px; }
50% { height: 24px; }
}
@keyframes scan {
0% { transform: translateY(-220px); }
100% { transform: translateY(220px); }
}
@keyframes flicker {
0%, 100% { opacity: 0; }
10% { opacity: 0.05; }
12% { opacity: 0; }
45% { opacity: 0.02; }
47% { opacity: 0; }
78% { opacity: 0.03; }
80% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.scan-line, .flicker-overlay {
display: none;
}
.hologram-glow, .hologram-status, .h-line, .h-bar {
animation: none;
}
}Tailwind CSS
<div class="group relative w-[220px]">
<div class="absolute -inset-10 rounded-full bg-purple-500/10 blur-2xl opacity-60 group-hover:opacity-100 group-hover:scale-150 transition-all duration-500"></div>
<div class="relative rounded-xl overflow-hidden backdrop-blur border border-purple-500/25 shadow-lg group-hover:shadow-[0_0_30px_rgba(168,85,247,0.2)] group-hover:-translate-y-1 transition-all duration-400 bg-gradient-to-br from-purple-500/5 to-cyan-500/3">
<div class="h-0.5 w-full bg-gradient-to-r from-transparent via-purple-400 via-cyan-400 to-transparent"></div>
<div class="absolute inset-0 pointer-events-none z-10 opacity-[0.08]" style="background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(168,85,247,0.5) 2px, rgba(168,85,247,0.5) 3px);"></div>
<div class="p-5 space-y-3">
<div class="flex items-center justify-between">
<div class="w-10 h-10 rounded-lg bg-purple-500/10 border border-purple-500/30 flex items-center justify-center">
<svg class="w-5 h-5 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<path d="M12 2L2 7l10 5 10-5-10-5z"/>
<path d="M2 17l10 5 10-5"/>
<path d="M2 12l10 5 10-5"/>
</svg>
</div>
<div class="w-2 h-2 rounded-full bg-cyan-400 shadow-[0_0_6px_rgba(6,182,212,0.6)] animate-pulse"></div>
</div>
<div class="space-y-2">
<div class="h-3 w-full rounded bg-gradient-to-r from-purple-500/30 to-cyan-500/15 animate-pulse"></div>
<div class="h-3 w-3/4 rounded bg-gradient-to-r from-purple-500/15 to-transparent"></div>
</div>
<div class="flex gap-1.5">
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/20 to-cyan-500/10 border border-purple-500/15 animate-pulse" style="animation-delay: 0s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/24 to-cyan-500/12 border border-purple-500/15 animate-pulse" style="animation-delay: 0.15s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/28 to-cyan-500/14 border border-purple-500/15 animate-pulse" style="animation-delay: 0.3s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/32 to-cyan-500/16 border border-purple-500/15 animate-pulse" style="animation-delay: 0.45s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/36 to-cyan-500/18 border border-purple-500/15 animate-pulse" style="animation-delay: 0.6s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/40 to-cyan-500/20 border border-purple-500/15 animate-pulse" style="animation-delay: 0.75s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/36 to-cyan-500/18 border border-purple-500/15 animate-pulse" style="animation-delay: 0.9s"></div>
<div class="flex-1 h-12 rounded-sm bg-gradient-to-b from-purple-500/28 to-cyan-500/14 border border-purple-500/15 animate-pulse" style="animation-delay: 1.05s"></div>
</div>
<div class="flex gap-2">
<span class="h-5 px-2.5 rounded flex items-center text-[8px] font-bold tracking-widest text-purple-400 bg-purple-500/12 border border-purple-500/20">AI</span>
<span class="h-5 px-2.5 rounded flex items-center text-[8px] font-bold tracking-widest text-purple-400 bg-purple-500/12 border border-purple-500/20">NEO</span>
</div>
</div>
<div class="h-0.5 w-full bg-gradient-to-r from-transparent via-cyan-400 via-purple-400 to-transparent"></div>
</div>
</div>React
import React, { useRef, useState } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';
export function FloatingHologramCard() {
const ref = useRef<HTMLDivElement>(null);
const [isHovered, setIsHovered] = useState(false);
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 20, stiffness: 200 });
const rotateY = useSpring(x, { damping: 20, stiffness: 200 });
const handleMouseMove = (e: React.MouseEvent) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
const centerX = rect.left + rect.width / 2;
const centerY = rect.top + rect.height / 2;
x.set(-((e.clientX - centerX) / (rect.width / 2)) * 15);
y.set(((e.clientY - centerY) / (rect.height / 2)) * 15);
};
return (
<motion.div
ref={ref}
onMouseMove={handleMouseMove}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => { x.set(0); y.set(0); setIsHovered(false); }}
style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }}
>
<motion.div
className="absolute -inset-10 rounded-full -z-10"
style={{
background: 'radial-gradient(circle, rgba(168,85,247,0.1), transparent 70%)',
filter: 'blur(20px)',
}}
animate={{ scale: isHovered ? 1.3 : 1, opacity: isHovered ? 1 : 0.6 }}
transition={{ duration: 0.5 }}
/>
<motion.div
className="relative rounded-xl overflow-hidden backdrop-blur border border-purple-500/25"
style={{
width: 220,
background: 'linear-gradient(135deg, rgba(168,85,247,0.05), rgba(6,182,212,0.03))',
boxShadow: isHovered
? '0 0 30px rgba(168,85,247,0.2), inset 0 0 30px rgba(168,85,247,0.05)'
: '0 0 15px rgba(168,85,247,0.1)',
}}
animate={{ y: isHovered ? -5 : 0 }}
transition={{ type: 'spring', stiffness: 300, damping: 20 }}
>
<div className="h-0.5 w-full bg-gradient-to-r from-transparent via-purple-400 via-cyan-400 to-transparent"
style={{ filter: isHovered ? 'blur(1px)' : 'none' }} />
<motion.div
className="absolute inset-0 pointer-events-none z-10 opacity-[0.08]"
style={{
background: 'repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(168,85,247,0.5) 2px, rgba(168,85,247,0.5) 3px)',
}}
animate={{ y: [0, 220] }}
transition={{ duration: 3, repeat: Infinity, ease: 'linear' }}
/>
<motion.div
className="absolute inset-0 pointer-events-none z-10"
style={{ background: 'linear-gradient(135deg, rgba(168,85,247,0.1), transparent)' }}
animate={{ opacity: isHovered ? [0, 0.03, 0, 0.02, 0, 0.04, 0] : [0, 0.02, 0, 0.01, 0] }}
transition={{ duration: isHovered ? 0.5 : 2, repeat: Infinity, ease: 'linear' }}
/>
<div className="p-5 space-y-3">
<div className="flex items-center justify-between">
<motion.div
className="w-10 h-10 rounded-lg bg-purple-500/10 border border-purple-500/30 flex items-center justify-center"
animate={{
boxShadow: isHovered
? ['0 0 10px rgba(168,85,247,0.4)', '0 0 10px rgba(6,182,212,0.4)', '0 0 10px rgba(236,72,153,0.4)', '0 0 10px rgba(168,85,247,0.4)']
: '0 0 5px rgba(168,85,247,0.1)',
}}
transition={{ duration: 3, repeat: Infinity, ease: 'linear' }}
>
<svg className="w-5 h-5 text-purple-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
<path d="M12 2L2 7l10 5 10-5-10-5z" />
<path d="M2 17l10 5 10-5" />
<path d="M2 12l10 5 10-5" />
</svg>
</motion.div>
<motion.div
className="w-2 h-2 rounded-full bg-cyan-400 shadow-[0_0_6px_rgba(6,182,212,0.6)]"
animate={{ opacity: [1, 0.4, 1] }}
transition={{ duration: 2, repeat: Infinity }}
/>
</div>
<div className="space-y-2">
<motion.div
className="h-3 w-full rounded bg-gradient-to-r from-purple-500/30 to-cyan-500/15"
animate={isHovered ? { opacity: [0.7, 1, 0.7] } : { opacity: 1 }}
transition={{ duration: 2, repeat: Infinity, ease: 'easeInOut' }}
/>
<div className="h-3 w-3/4 rounded bg-gradient-to-r from-purple-500/15 to-transparent" />
</div>
<div className="flex gap-1.5">
{Array.from({ length: 8 }).map((_, i) => (
<motion.div
key={i}
className="flex-1 h-12 rounded-sm border border-purple-500/15"
style={{
background: `linear-gradient(180deg, rgba(168,85,247,${0.2 + i * 0.04}), rgba(6,182,212,${0.1 + (7 - i) * 0.02}))`,
}}
animate={{ height: [40, 24, 40] }}
transition={{ duration: 1.5 + Math.random(), repeat: Infinity, ease: 'easeInOut', delay: i * 0.15 }}
/>
))}
</div>
<div className="flex gap-2">
{['AI', 'NEO'].map((tag) => (
<div key={tag}
className="h-5 px-2.5 rounded flex items-center text-[7px] font-bold tracking-widest text-purple-400 bg-purple-500/12 border border-purple-500/20">
{tag}
</div>
))}
</div>
</div>
<div className="h-0.5 w-full bg-gradient-to-r from-transparent via-cyan-400 via-purple-400 to-transparent" />
</motion.div>
</motion.div>
);
}Where Floating Hologram Card fits
- AI Dashboards
- Cyber Security
- Sci-Fi Interfaces
- Gaming UI
- Dashboards
- Tech Products
Interaction states & animations
- Scan lines
- Projection flicker
- Holographic noise
- Light sweep
- Floating particles
Topics
- #hologram
- #holographic
- #cyberpunk
- #sci-fi
- #futuristic
- #neon
- #rgb
- #projection
- #glow
- #tech
Accessibility notes
Ensure text content has sufficient contrast. Holographic effects may be distracting for some users. Provide prefers-reduced-motion fallback. Avoid using color alone to convey information.
Browser support
- Chrome 90+
- Firefox 105+
- Safari 15+
- Edge 90+