Skip to content

Phantomime Card

A stark white mask floating in a velvet-black void. Neutral at rest, the mask responds to hover zones with micro-expressions - raised brows, widened eyes, subtle smiles. Clicking makes the mask 'speak' through mime gestures and silent-film-style title cards, with piano notes accenting each expression change.

Phantomime Card

by FreeCsStyles Dev's

CardsPhantomime Mask
🌐🎨⚛️💚🅰️🔥☁️
#Mask#Mime#Theatre#Expression#Performance#Silhouette#Drama

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/phantomime-card.

<iframe src="/embed/phantomime-card" sandbox="allow-scripts" loading="lazy" title="Phantomime Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Phantomime 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="mask-card">
  <div class="mask-void"></div>
  <div class="mask-spotlight"></div>
  <svg class="mask-svg" viewBox="0 0 100 100">
    <path d="M 30 35 C 30 20, 70 20, 70 35 C 75 45, 75 60, 70 70 C 65 78, 55 82, 50 82 C 45 82, 35 78, 30 70 C 25 60, 25 45, 30 35 Z" fill="none" stroke="rgba(232,220,200,0.2)" stroke-width="0.6"/>
    <ellipse cx="38" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
    <ellipse cx="56" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
    <circle cx="38" cy="50" r="1.5" fill="rgba(232,220,200,0.2)"/>
    <circle cx="56" cy="50" r="1.5" fill="rgba(232,220,200,0.2)"/>
    <path d="M 30 42 Q 38 40, 44 42" fill="none" stroke="rgba(232,220,200,0.2)" stroke-width="0.5"/>
    <path d="M 50 42 Q 58 40, 64 42" fill="none" stroke="rgba(232,220,200,0.2)" stroke-width="0.5"/>
    <path d="M 42 68 Q 48 70, 54 68" fill="none" stroke="rgba(232,220,200,0.15)" stroke-width="0.5" stroke-linecap="round"/>
  </svg>
  <div class="mask-content">
    <div class="mask-header">
      <div><div class="mask-title">The Mime</div><div class="mask-sub">Silent Soliloquy</div></div>
      <div class="mask-status">AT REST</div>
    </div>
    <div class="mask-grid">
      <div class="mask-stat"><div class="mask-stat-val">Act I</div><div class="mask-stat-lbl">Current Act</div></div>
      <div class="mask-stat"><div class="mask-stat-val">Serene</div><div class="mask-stat-lbl">Expression</div></div>
    </div>
    <div class="mask-hint">[▼ watch performance]</div>
  </div>
</div>
CSS
.mask-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #0a0806, #060404); border: 1.5px solid rgba(232,220,200,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.mask-card:hover { box-shadow: 0 0 30px rgba(232,220,200,0.06), 0 15px 40px rgba(0,0,0,0.4); }
.mask-void { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(20,18,16,0.5), rgba(0,0,0,0.9)); }
.mask-spotlight { position: absolute; left: 50%; top: 15%; width: 80px; height: 60px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse, rgba(232,220,200,0.04), transparent 70%); filter: blur(8px); }
.mask-svg { position: absolute; left: 50%; top: 42%; width: 40%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
.mask-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); }
.mask-header { display: flex; justify-content: space-between; align-items: center; }
.mask-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.mask-sub { font-size: 9px; color: rgba(232,220,200,0.44); }
.mask-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: rgba(232,220,200,0.6); background: rgba(232,220,200,0.08); border: 1px solid rgba(232,220,200,0.12); }
.mask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mask-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(232,220,200,0.02); border: 1px solid rgba(232,220,200,0.04); }
.mask-stat-val { font-size: 10px; font-weight: 600; color: rgba(232,220,200,0.6); }
.mask-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.mask-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(232,220,200,0.2); margin-top: 8px; }
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-stone-400/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(232,220,200,0.06),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-b from-[#0a0806] to-[#060404] cursor-pointer">
  <div class="absolute inset-0 pointer-events-none bg-gradient-radial from-stone-800/50 to-black/90"></div>
  <div class="absolute left-1/2 top-[15%] w-20 h-14 -translate-x-1/2 pointer-events-none bg-gradient-radial from-stone-400/10 to-transparent blur-lg"></div>
  <svg class="absolute left-1/2 top-[42%] w-[40%] -translate-x-1/2 -translate-y-1/2 z-[3] pointer-events-none" viewBox="0 0 100 100">
    <path d="M 30 35 C 30 20, 70 20, 70 35 C 75 45, 75 60, 70 70 C 65 78, 55 82, 50 82 C 45 82, 35 78, 30 70 C 25 60, 25 45, 30 35 Z" fill="none" stroke="rgba(232,220,200,0.2)" stroke-width="0.6"/>
    <ellipse cx="38" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
    <ellipse cx="56" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
    <path d="M 42 68 Q 48 70, 54 68" fill="none" stroke="rgba(232,220,200,0.15)" stroke-width="0.5" stroke-linecap="round"/>
  </svg>
  <div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/70 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-white/90">The Mime</p><p class="text-[9px] text-stone-400/50">Silent Soliloquy</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-stone-400 bg-stone-500/10 border border-stone-500/20">AT REST</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-stone-500/10 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-stone-500/10 border border-stone-500/20"><p class="text-[10px] font-semibold text-stone-400">Act I</p><p class="text-[7px] mt-0.5 text-white/20">Current Act</p></div>
      <div class="text-center py-1.5 rounded-lg bg-stone-500/10 border border-stone-500/20"><p class="text-[10px] font-semibold text-stone-400">Serene</p><p class="text-[7px] mt-0.5 text-white/20">Expression</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-stone-400/30">[▼ watch performance]</span></div>
  </div>
</div>
React
import React, { useState, useRef, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function PhantomimeCard({ characterName = 'The Mime', width = 220 }) {
  const [isHovered, setIsHovered] = useState(false);
  const [speaking, setSpeaking] = useState(false);
  const [hoveredZone, setHoveredZone] = useState(null);
  const [pianoNote, setPianoNote] = useState(false);
  const ref = useRef(null);
  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);
  };
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); setHoveredZone(null); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => { if (!speaking) { setSpeaking(true); setPianoNote(true); setTimeout(() => setPianoNote(false), 600); setTimeout(() => setSpeaking(false), 3000); } }} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
        <motion.div className="relative overflow-hidden rounded-2xl" style={{ width, minHeight: 300, background: 'linear-gradient(160deg, #0a0806, #060404)', border: '1.5px solid rgba(232,220,200,0.06)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(232,220,200,0.06), 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 }}>
          <div className="absolute inset-0 pointer-events-none" style={{ background: 'radial-gradient(ellipse at 50% 50%, rgba(20,18,16,0.5), rgba(0,0,0,0.9))' }} />
          <motion.div className="absolute left-1/2 top-[15%] w-20 h-14 -translate-x-1/2 pointer-events-none" style={{ background: 'radial-gradient(ellipse, rgba(232,220,200,0.04), transparent 70%)', filter: 'blur(8px)' }}
            animate={speaking ? { opacity: [0.3, 0.6, 0.3] } : isHovered ? { opacity: 0.4 } : { opacity: 0.2 }} transition={{ duration: 2, repeat: speaking ? Infinity : 0 }} />
          <motion.div className="absolute z-[3] pointer-events-none" style={{ left: '50%', top: '42%', width: '40%', transform: 'translate(-50%,-50%)' }}
            animate={speaking ? { y: [0, -2, 0] } : isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: speaking ? 1.5 : 3, repeat: Infinity }}>
            <svg viewBox="0 0 100 100" className="w-full">
              <path d="M 30 35 C 30 20, 70 20, 70 35 C 75 45, 75 60, 70 70 C 65 78, 55 82, 50 82 C 45 82, 35 78, 30 70 C 25 60, 25 45, 30 35 Z" fill="none" stroke="rgba(232,220,200,0.2)" stroke-width="0.6"/>
              <ellipse cx="38" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
              <ellipse cx="56" cy="50" rx="4" ry="3" fill="rgba(232,220,200,0.08)" stroke="rgba(232,220,200,0.15)" stroke-width="0.4"/>
              <path d="M 42 68 Q 48 70, 54 68" fill="none" stroke="rgba(232,220,200,0.15)" stroke-width="0.5" stroke-linecap="round"/>
            </svg>
          </motion.div>
          <AnimatePresence>{pianoNote && (
            <motion.div className="absolute top-[18%] right-[12%] z-[4] pointer-events-none" initial={{ opacity: 0, scale: 0.5 }} animate={{ opacity: 1, scale: 1, y: [0, -8, 0] }} exit={{ opacity: 0 }} transition={{ duration: 0.6 }}>
              <span className="text-[10px]" style={{ filter: 'drop-shadow(0 0 4px rgba(232,220,200,0.5))' }}>♪</span>
            </motion.div>
          )}</AnimatePresence>
          <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.7), transparent)' }}>
            <div className="flex items-center justify-between">
              <div><p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>{characterName}</p><p className="text-[9px]" style={{ color: 'rgba(232,220,200,0.44)' }}>Silent Soliloquy</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(232,220,200,0.08)', border: '1px solid rgba(232,220,200,0.12)', color: 'rgba(232,220,200,0.6)' }} animate={speaking ? { opacity: [0.5, 1, 0.5] } : {}} transition={{ duration: 1, repeat: speaking ? Infinity : 0 }}>{speaking ? 'PERFORMING' : 'AT REST'}</motion.div>
            </div>
            <div className="text-center"><span className="text-[7px] font-mono" style={{ color: 'rgba(232,220,200,0.2)' }}>{speaking ? '[▼ silence]' : '[▼ watch performance]'}</span></div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Phantomime Card fits

  • Theatrical presentation
  • Emotion visualization
  • Performance art UI
  • Interactive storytelling

Interaction states & animations

  • Mask morphing
  • Micro-expressions
  • Gesture emoji cycling
  • Title card fade
  • Piano note indicator

Topics

  • #Mask
  • #Mime
  • #Theatre
  • #Expression
  • #Performance
  • #Silhouette
  • #Drama

Accessibility notes

The performance relies on visual micro-expressions and title cards. Provide audio descriptions. The mask animation may be unsettling. Piano notes are decorative.

Browser support

  • Chrome 90+
  • Firefox 105+
  • Safari 15+
  • Edge 90+