AI Living Assistant Card
Every card has its own AI assistant. A tiny robot character lives inside the card with animated eyes that track cursor movement, a speech bubble that cycles through messages, and interactive mood emojis.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/ai-living-assistant-card.
<iframe src="/embed/ai-living-assistant-card" sandbox="allow-scripts" loading="lazy" title="AI Living Assistant Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for AI Living Assistant 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="ai-assistant-card">
<div class="ai-glow"></div>
<div class="ai-frame">
<div class="ai-content">
<div class="ai-robot">
<div class="ai-antenna"></div>
<div class="ai-antenna-glow"></div>
<div class="ai-body">
<div class="ai-eyes">
<div class="ai-eye"><div class="ai-pupil"></div></div>
<div class="ai-eye"><div class="ai-pupil"></div></div>
</div>
<div class="ai-mouth"></div>
</div>
</div>
<div class="ai-name">Neo</div>
<div class="ai-role">AI Assistant</div>
<div class="ai-stats">
<div class="ai-stat">
<div class="ai-stat-value">42</div>
<div class="ai-stat-label">Tasks</div>
</div>
<div class="ai-stat">
<div class="ai-stat-value">99.7%</div>
<div class="ai-stat-label">Uptime</div>
</div>
</div>
<div class="ai-emojis">
<span>😊</span>
<span>😴</span>
<span>🚀</span>
<span>💡</span>
</div>
</div>
</div>
</div>CSS
.ai-assistant-card {
position: relative;
width: 210px;
}
.ai-glow {
position: absolute;
inset: -24px;
border-radius: 12px;
z-index: -1;
background: radial-gradient(circle, rgba(6,182,212,0.04), transparent 70%);
filter: blur(12px);
transition: all 0.4s ease;
}
.ai-assistant-card:hover .ai-glow {
transform: scale(1.2);
background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
filter: blur(20px);
}
.ai-frame {
position: relative;
border-radius: 16px;
overflow: hidden;
min-height: 290px;
background: linear-gradient(145deg, #0d0d1a, #080812);
border: 1px solid rgba(6,182,212,0.15);
box-shadow: 0 10px 30px rgba(0,0,0,0.35);
transition: all 0.4s ease;
}
.ai-assistant-card:hover .ai-frame {
box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 20px rgba(6,182,212,0.08);
}
.ai-content {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 12px;
}
.ai-robot {
position: relative;
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
}
.ai-antenna {
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 12px;
background: #22d3ee;
border-radius: 2px;
}
.ai-antenna-glow {
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
width: 8px;
height: 8px;
border-radius: 50%;
background: #22d3ee;
box-shadow: 0 0 6px #22d3ee;
animation: antenna-pulse 1.5s ease-in-out infinite;
}
@keyframes antenna-pulse {
0%, 100% { opacity: 0.4; }
50% { opacity: 1; }
}
.ai-body {
position: absolute;
bottom: 0;
width: 56px;
height: 48px;
border-radius: 16px;
background: linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05));
border: 1.5px solid rgba(6,182,212,0.2);
}
.ai-eyes {
position: absolute;
top: 12px;
left: 0;
right: 0;
display: flex;
justify-content: center;
gap: 12px;
}
.ai-eye {
width: 12px;
height: 12px;
border-radius: 50%;
background: rgba(6,182,212,0.1);
border: 1px solid rgba(6,182,212,0.3);
position: relative;
overflow: hidden;
}
.ai-pupil {
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background: #22d3ee;
box-shadow: 0 0 4px #22d3ee;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 0.1s ease;
}
.ai-mouth {
position: absolute;
bottom: 12px;
left: 50%;
transform: translateX(-50%);
width: 10px;
height: 2px;
background: rgba(6,182,212,0.4);
border-radius: 1px;
}
.ai-name {
font-size: 14px;
font-weight: 700;
color: rgba(255,255,255,0.9);
}
.ai-role {
font-size: 10px;
color: rgba(6,182,212,0.5);
}
.ai-stats {
display: flex;
gap: 16px;
width: 100%;
}
.ai-stat {
flex: 1;
text-align: center;
padding: 8px;
border-radius: 8px;
background: rgba(6,182,212,0.06);
border: 1px solid rgba(6,182,212,0.1);
}
.ai-stat-value {
font-size: 14px;
font-weight: 700;
color: #22d3ee;
}
.ai-stat-label {
font-size: 8px;
color: rgba(255,255,255,0.3);
}
.ai-emojis {
display: flex;
gap: 6px;
}
.ai-emojis span {
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
}
.ai-emojis span:hover {
transform: scale(1.3);
}
@media (prefers-reduced-motion: reduce) {
.ai-antenna-glow { animation: none; }
.ai-robot { animation: none !important; }
.ai-pupil { transition: none; }
}Tailwind CSS
<div class="group relative w-[210px]">
<div class="absolute -inset-6 rounded-2xl -z-10 bg-cyan-500/10 blur-xl scale-100 group-hover:scale-125 group-hover:bg-cyan-500/20 group-hover:blur-2xl transition-all duration-500"></div>
<div class="relative rounded-2xl overflow-hidden min-h-[290px] bg-gradient-to-br from-[#0d0d1a] to-[#080812] border border-cyan-500/20 shadow-lg transition-all duration-500 group-hover:shadow-[0_25px_50px_rgba(0,0,0,0.5),0_0_20px_rgba(6,182,212,0.08)]">
<div class="p-5 flex flex-col items-center text-center gap-3">
<div class="relative w-20 h-20 flex items-center justify-center">
<div class="absolute bottom-0 w-14 h-12 rounded-2xl bg-gradient-to-br from-cyan-500/20 to-cyan-500/10 border border-cyan-500/30">
<div class="absolute -top-4 left-1/2 -translate-x-1/2 w-1 h-3 rounded bg-cyan-400"></div>
<div class="absolute -top-5 left-1/2 -translate-x-1/2 w-2 h-2 rounded-full bg-cyan-400 shadow-[0_0_6px_#22d3ee] animate-pulse"></div>
<div class="absolute top-3 left-0 right-0 flex justify-center gap-3">
<div class="w-3 h-3 rounded-full bg-cyan-500/10 border border-cyan-500/30 relative overflow-hidden"><div class="absolute w-1.5 h-1.5 rounded-full bg-cyan-400 shadow-[0_0_4px_#22d3ee] top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"></div></div>
<div class="w-3 h-3 rounded-full bg-cyan-500/10 border border-cyan-500/30 relative overflow-hidden"><div class="absolute w-1.5 h-1.5 rounded-full bg-cyan-400 shadow-[0_0_4px_#22d3ee] top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"></div></div>
</div>
<div class="absolute bottom-3 left-1/2 -translate-x-1/2 w-2.5 h-0.5 rounded bg-cyan-400/50"></div>
</div>
</div>
<div>
<div class="text-sm font-bold text-white/90">Neo</div>
<div class="text-[10px] text-cyan-500/50">AI Assistant</div>
</div>
<div class="flex gap-4 w-full">
<div class="flex-1 text-center py-2 rounded-lg bg-cyan-500/10 border border-cyan-500/20"><div class="text-xs font-bold text-cyan-400">42</div><div class="text-[8px] text-white/30">Tasks</div></div>
<div class="flex-1 text-center py-2 rounded-lg bg-cyan-500/10 border border-cyan-500/20"><div class="text-xs font-bold text-cyan-400">99.7%</div><div class="text-[8px] text-white/30">Uptime</div></div>
</div>
<div class="flex gap-1.5">
<span class="text-xs cursor-pointer hover:scale-125 transition-transform">😊</span>
<span class="text-xs cursor-pointer hover:scale-125 transition-transform">😴</span>
<span class="text-xs cursor-pointer hover:scale-125 transition-transform">🚀</span>
<span class="text-xs cursor-pointer hover:scale-125 transition-transform">💡</span>
</div>
</div>
</div>
</div>React
import React, { useState, useEffect } from 'react';
import { motion } from 'framer-motion';
export function AILivingAssistantCard() {
const [isHovered, setIsHovered] = useState(false);
const [speechText, setSpeechText] = useState('Hello! I\'m your AI assistant.');
const [eyePos, setEyePos] = useState({ x: 0, y: 0 });
const handleMouseMove = (e: React.MouseEvent<HTMLDivElement>) => {
const rect = e.currentTarget.getBoundingClientRect();
setEyePos({
x: ((e.clientX - rect.left - rect.width / 2) / (rect.width / 2)) * 3,
y: ((e.clientY - rect.top - rect.height / 2) / (rect.height / 2)) * 3,
});
};
useEffect(() => {
if (!isHovered) { setSpeechText('Hello! I\'m your AI assistant.'); return; }
const msgs = ['Looking at your data!', 'Great work today!', 'Need any help?', 'You\'re doing amazing!'];
let i = 0;
const interval = setInterval(() => { setSpeechText(msgs[i % msgs.length]); i++; }, 2500);
return () => clearInterval(interval);
}, [isHovered]);
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); setEyePos({ x: 0, y: 0 }); }} onMouseMove={handleMouseMove}>
<motion.div className="absolute -inset-6 rounded-2xl -z-10 pointer-events-none"
animate={{ background: isHovered ? 'radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%)' : 'radial-gradient(circle, rgba(6,182,212,0.04), transparent 70%)', filter: isHovered ? 'blur(20px)' : 'blur(12px)', scale: isHovered ? 1.2 : 1 }}
transition={{ duration: 0.4 }} />
<div className="relative overflow-hidden rounded-2xl" style={{
width: 210, minHeight: 290,
background: 'linear-gradient(145deg, #0d0d1a, #080812)',
border: '1px solid rgba(6,182,212,0.15)',
boxShadow: isHovered ? '0 25px 50px rgba(0,0,0,0.5), 0 0 20px rgba(6,182,212,0.08)' : '0 10px 30px rgba(0,0,0,0.35)',
}}>
{isHovered && (
<motion.div className="absolute top-3 left-1/2 -translate-x-1/2 z-20 px-3 py-1.5 rounded-lg pointer-events-none"
style={{ background: 'rgba(0,0,0,0.8)', border: '1px solid rgba(6,182,212,0.25)', maxWidth: '80%' }}
initial={{ opacity: 0, y: 10, scale: 0.8 }} animate={{ opacity: 1, y: 0, scale: 1 }}
exit={{ opacity: 0, y: -10, scale: 0.8 }} transition={{ type: 'spring', stiffness: 300, damping: 20 }}>
<p className="text-[9px] text-center font-medium text-white/90">{speechText}</p>
</motion.div>
)}
<div className="p-5 flex flex-col items-center text-center gap-3">
<div className="relative w-20 h-20 flex items-center justify-center">
<div className="absolute bottom-0 w-14 h-12 rounded-2xl" style={{ background: 'linear-gradient(135deg, rgba(6,182,212,0.15), rgba(6,182,212,0.05))', border: '1.5px solid rgba(6,182,212,0.2)' }}>
<div className="absolute -top-4 left-1/2 -translate-x-1/2 w-1 h-3 rounded" style={{ background: '#22d3ee' }} />
<div className="absolute -top-5 left-1/2 -translate-x-1/2 w-2 h-2 rounded-full" style={{ background: '#22d3ee', boxShadow: '0 0 6px #22d3ee' }} />
<div className="absolute top-3 left-0 right-0 flex justify-center gap-3">
{[0, 1].map((side) => (
<div key={side} className="w-3 h-3 rounded-full relative overflow-hidden" style={{ background: 'rgba(6,182,212,0.1)', border: '1px solid rgba(6,182,212,0.3)' }}>
<motion.div className="absolute w-1.5 h-1.5 rounded-full" style={{ background: '#22d3ee', boxShadow: '0 0 4px #22d3ee' }} animate={{ x: isHovered ? eyePos.x : 0, y: isHovered ? eyePos.y : 0 }} transition={{ type: 'spring', stiffness: 300, damping: 15 }} />
</div>
))}
</div>
<div className="absolute bottom-3 left-1/2 -translate-x-1/2" style={{ width: 10, height: 2, background: 'rgba(6,182,212,0.4)', borderRadius: 1 }} />
</div>
</div>
<div>
<p className="text-sm font-bold text-white/90">Neo</p>
<p className="text-[10px]" style={{ color: 'rgba(6,182,212,0.5)' }}>AI Assistant</p>
</div>
<div className="flex gap-4 w-full">
{[{ label: 'Tasks', value: 42 }, { label: 'Uptime', value: '99.7%' }].map((s) => (
<div key={s.label} className="flex-1 text-center py-2 rounded-lg" style={{ background: 'rgba(6,182,212,0.06)', border: '1px solid rgba(6,182,212,0.1)' }}>
<p className="text-xs font-bold text-cyan-400">{s.value}</p>
<p className="text-[8px] text-white/30">{s.label}</p>
</div>
))}
</div>
<div className="flex gap-1.5">
{['😊', '😴', '🚀', '💡'].map((emoji, i) => (
<motion.span key={i} className="text-xs cursor-pointer" whileHover={{ scale: 1.3 }} whileTap={{ scale: 0.9 }}>{emoji}</motion.span>
))}
</div>
</div>
</div>
</div>
);
}Where AI Living Assistant Card fits
- AI Products
- Customer Support
- Onboarding
- Education
- Smart Apps
- Virtual Assistants
Interaction states & animations
- Eye tracking
- Speech bubbles
- Emotions
- Idle bounce
- Character morph
Topics
- #ai
- #assistant
- #robot
- #character
- #living
- #interactive
- #eye-tracking
- #speech
- #friendly
- #cyber
Accessibility notes
Speech text should be visible in the HTML for screen readers. Eye tracking should not be the only interaction mode. Provide keyboard alternatives for all interactive elements. Respect prefers-reduced-motion.
Browser support
- Chrome 76+
- Firefox 90+
- Safari 13+
- Edge 79+