Chromatophore Skin Card
A living surface covered in color-changing cells like an octopus skin. Patterns ripple across the surface in response to content changes. Hover triggers a localized bloom of color and texture. Clicking startles the card, causing a rapid, full-surface flash of a complex camouflage pattern. The card subtly mimics the color palette of adjacent elements on the page.
by FreeCsStyles Dev's
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/chromatophore-skin-card.
<iframe src="/embed/chromatophore-skin-card" sandbox="allow-scripts" loading="lazy" title="Chromatophore Skin Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Chromatophore Skin 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="chroma-card">
<div class="chroma-cells" id="chroma-cells"></div>
<div class="chroma-content">
<div class="chroma-header">
<div><div class="chroma-title">Mimic Octopus</div><div class="chroma-sub">Marine Biologist</div></div>
<div class="chroma-status">HIDE</div>
</div>
<div class="chroma-grid">
<div class="chroma-stat"><div class="chroma-stat-val">24</div><div class="chroma-stat-lbl">Active Cells</div></div>
<div class="chroma-stat"><div class="chroma-stat-val">Reef</div><div class="chroma-stat-lbl">Pattern</div></div>
</div>
<div class="chroma-hint">[▼ click to startle]</div>
</div>
</div>
<style>
.chroma-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0e080e, #080408); border: 1.5px solid rgba(244,114,182,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.chroma-card:hover { box-shadow: 0 0 30px rgba(244,114,182,0.08), 0 15px 40px rgba(0,0,0,0.4); }
.chroma-cells { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.chroma-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent); }
.chroma-header { display: flex; justify-content: space-between; align-items: center; }
.chroma-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.chroma-sub { font-size: 9px; color: rgba(244,114,182,0.44); }
.chroma-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #f472b6; background: rgba(244,114,182,0.08); border: 1px solid rgba(244,114,182,0.12); }
.chroma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chroma-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(244,114,182,0.02); border: 1px solid rgba(244,114,182,0.04); }
.chroma-stat-val { font-size: 10px; font-weight: 600; color: #f472b6; }
.chroma-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.chroma-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(244,114,182,0.2); }</style>CSS
.chroma-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0e080e, #080408); border: 1.5px solid rgba(244,114,182,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.chroma-card:hover { box-shadow: 0 0 30px rgba(244,114,182,0.08), 0 15px 40px rgba(0,0,0,0.4); }
.chroma-cells { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.chroma-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent); }
.chroma-header { display: flex; justify-content: space-between; align-items: center; }
.chroma-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.chroma-sub { font-size: 9px; color: rgba(244,114,182,0.44); }
.chroma-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #f472b6; background: rgba(244,114,182,0.08); border: 1px solid rgba(244,114,182,0.12); }
.chroma-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chroma-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(244,114,182,0.02); border: 1px solid rgba(244,114,182,0.04); }
.chroma-stat-val { font-size: 10px; font-weight: 600; color: #f472b6; }
.chroma-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.chroma-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(244,114,182,0.2); }Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-pink-400/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(244,114,182,0.08),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-b from-[#0e080e] to-[#080408] cursor-pointer">
<div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/50 to-transparent">
<div class="flex items-center justify-between">
<div><p class="text-sm font-bold text-white/90">Mimic Octopus</p><p class="text-[9px] text-pink-400/50">Marine Biologist</p></div>
<div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-pink-400 bg-pink-500/10 border border-pink-500/20">HIDE</div>
</div>
<div class="h-px bg-gradient-to-r from-transparent via-pink-500/10 to-transparent"></div>
<div class="grid grid-cols-2 gap-2">
<div class="text-center py-1.5 rounded-lg bg-pink-500/10 border border-pink-500/20"><p class="text-[10px] font-semibold text-pink-400">24</p><p class="text-[7px] mt-0.5 text-white/20">Active Cells</p></div>
<div class="text-center py-1.5 rounded-lg bg-pink-500/10 border border-pink-500/20"><p class="text-[10px] font-semibold text-pink-400">Reef</p><p class="text-[7px] mt-0.5 text-white/20">Pattern</p></div>
</div>
<div class="text-center"><span class="text-[7px] font-mono text-pink-400/30">[▼ click to startle]</span></div>
</div>
</div>React
import React, { useState, useRef, useCallback, useEffect } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';
export function ChromatophoreSkinCard() {
const ref = useRef(null);
const [isHovered, setIsHovered] = useState(false);
const [isStartled, setIsStartled] = useState(false);
const x = useMotionValue(0);
const y = useMotionValue(0);
const rotateX = useSpring(y, { damping: 25, stiffness: 200 });
const rotateY = useSpring(x, { damping: 25, stiffness: 200 });
const handleMouseMove = (e) => {
if (!ref.current) return;
const rect = ref.current.getBoundingClientRect();
x.set(-((e.clientX - rect.left - rect.width / 2) / (rect.width / 2)) * 6);
y.set(((e.clientY - rect.top - rect.height / 2) / (rect.height / 2)) * 6);
};
const cells = Array.from({ length: 24 }, (_, i) => ({ id: i, x: 5 + Math.random() * 90, y: 5 + Math.random() * 55, size: 4 + Math.random() * 8 }));
const handleClick = () => { setIsStartled(true); setTimeout(() => setIsStartled(false), 1500); };
return (
<div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
<motion.div ref={ref} onMouseMove={handleMouseMove} onClick={handleClick} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
<motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: 'linear-gradient(160deg, #0e080e, #080408)', border: '1.5px solid rgba(244,114,182,0.08)' }}
animate={{ boxShadow: isHovered ? '0 0 30px rgba(244,114,182,0.08), 0 15px 40px rgba(0,0,0,0.4)' : '0 10px 30px rgba(0,0,0,0.3)' }} transition={{ type: 'spring', stiffness: 280, damping: 20 }}>
{isStartled && <motion.div className="absolute inset-0 z-15 pointer-events-none rounded-2xl" style={{ background: 'radial-gradient(ellipse at 50% 50%, rgba(244,114,182,0.15), transparent 60%)' }} initial={{ opacity: 0 }} animate={{ opacity: [0, 0.6, 0] }} transition={{ duration: 0.8 }} />}
<div className="absolute inset-0 z-[3] pointer-events-none" style={{ top: '5%', left: '5%', width: '90%', height: '55%' }}>
{cells.map((cell) => (
<motion.div key={cell.id} className="absolute rounded-full"
style={{ left: `${cell.x}%`, top: `${cell.y}%`, transform: 'translate(-50%,-50%)', width: cell.size, height: cell.size, border: '0.5px solid rgba(244,114,182,0.08)' }}
animate={{
scale: isStartled ? [1, 1.5, 1] : isHovered ? [1, 1.1, 1] : 1,
background: isStartled ? `hsla(${280+cell.id*30},70%,60%,0.3)` : `hsla(${280+cell.id*15},60%,50%,0.15)`,
opacity: isStartled ? 0.5 : isHovered ? 0.35 : 0.15,
}}
transition={{ duration: isStartled ? 0.5 : 2, repeat: isStartled ? 0 : (isHovered ? Infinity : 0), ease: 'easeInOut', delay: cell.id * 0.02 }} />
))}
</div>
<div className="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.5), transparent)' }}>
<div className="flex items-center justify-between">
<div><p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>Mimic Octopus</p><p className="text-[9px]" style={{ color: 'rgba(244,114,182,0.44)' }}>Marine Biologist</p></div>
<motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(244,114,182,0.08)', border: '1px solid rgba(244,114,182,0.12)', color: '#f472b6' }}>{isStartled ? 'FLASH' : isHovered ? 'BLOOM' : 'HIDE'}</motion.div>
</div>
<div className="h-px" style={{ background: 'linear-gradient(90deg, transparent, rgba(244,114,182,0.1), transparent)' }} />
<div className="grid grid-cols-2 gap-2">
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(244,114,182,0.02)', border: '1px solid rgba(244,114,182,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: '#f472b6' }}>{cells.length}</p><p className="text-[7px] mt-0.5" style={{ color: 'rgba(255,255,255,0.2)' }}>Active Cells</p></div>
<div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(244,114,182,0.02)', border: '1px solid rgba(244,114,182,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: '#ec4899' }}>Reef</p><p className="text-[7px] mt-0.5" style={{ color: 'rgba(255,255,255,0.2)' }}>Pattern</p></div>
</div>
<motion.div className="text-center" animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }}>
<span className="text-[7px] font-mono" style={{ color: 'rgba(244,114,182,0.2)' }}>{isStartled ? '[▼ calming down...]' : '[▼ click to startle]'}</span>
</motion.div>
</div>
</motion.div>
</motion.div>
</div>
);
}Where Chromatophore Skin Card fits
- Adaptive UI surfaces
- Camouflage visualization
- Marine biology interfaces
- Dynamic skin panels
- Color-reactive dashboards
Interaction states & animations
- Chromatophore bloom
- Color ripple
- Startle flash
- Pattern shift
- Camouflage adaptation
Topics
- #chromatophore
- #octopus
- #color
- #camouflage
- #ripple
- #organic
- #skin
- #morph
- #pattern
- #cephalopod
Accessibility notes
The color-changing and flash effects may trigger photosensitive epilepsy. The startle flash is intense. Provide prefers-reduced-motion alternative showing static cells. Ensure all information is available without color perception.
Browser support
- Chrome 90+
- Firefox 105+
- Safari 15+
- Edge 90+