Skip to content

Masquerade Mask Card

An elegant card featuring a rotating masquerade mask at its center. The mask tilts and spins with a graceful motion, feathers swaying. Hovering makes the mask perform a slow reveal, turning to face the viewer. Clicking alternates between comedy and tragedy mask expressions.

Masquerade Mask Card

by FreeCsStyles Dev's

CardsSpin / Rotation / Flip
🌐🎨⚛️💚🅰️🔥☁️
#mask#masquerade#theater#venetian#elegant#feather#comedy#tragedy#ball#costume

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Masquerade Mask 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="masquerade-card">
  <div class="mask-container">
    <div class="mask">
      <div class="mask-face comedy">
        <div class="mask-eyes"><div class="mask-eye l"></div><div class="mask-eye r"></div></div>
        <div class="mask-smile">⌣</div>
        <div class="mask-feathers"></div>
      </div>
      <div class="mask-face tragedy">
        <div class="mask-eyes"><div class="mask-eye l"></div><div class="mask-eye r"></div></div>
        <div class="mask-frown">⌢</div>
        <div class="mask-feathers"></div>
      </div>
    </div>
    <div class="mask-feather l"></div>
    <div class="mask-feather r"></div>
  </div>
  <div class="mask-content">
    <div class="mask-title">Masquerade</div>
    <div class="mask-sub">Venetian Ball</div>
  </div>
</div>
CSS
.masquerade-card { position: relative; width: 220px; min-height: 290px; border-radius: 16px; background: linear-gradient(160deg, #1a0a18, #0e040c); border: 1.5px solid rgba(200,150,180,0.12); overflow: hidden; cursor: pointer; }
.masquerade-card:hover { box-shadow: 0 0 30px rgba(200,150,180,0.06); }
.mask-container { position: absolute; left: 50%; top: 32%; transform: translate(-50%,-50%); width: 80px; height: 60px; perspective: 200px; }
.mask { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.masquerade-card:hover .mask { transform: rotateY(-15deg) rotateX(5deg); }
.masquerade-card.tragedy .mask { transform: rotateY(180deg); }
.mask-face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mask-face.comedy { z-index: 2; }
.mask-face.tragedy { transform: rotateY(180deg); }
.mask-eyes { display: flex; gap: 12px; }
.mask-eye { width: 10px; height: 8px; border-radius: 50%; border: 2px solid #d4a574; background: #1a0a18; }
.mask-smile { font-size: 18px; color: #d4a574; margin-top: 4px; }
.mask-frown { font-size: 18px; color: #888; margin-top: 4px; transform: rotate(180deg); }
.mask-feather { position: absolute; top: -15px; width: 4px; height: 25px; background: linear-gradient(180deg, #d4a574, #a07040); border-radius: 2px; transform-origin: bottom center; animation: featherSway 3s ease-in-out infinite; }
.mask-feather.l { left: 10px; transform: rotate(-15deg); }
.mask-feather.r { right: 10px; transform: rotate(15deg); animation-delay: 1.5s; }
@keyframes featherSway { 0%,100% { transform: rotate(-15deg); } 50% { transform: rotate(-25deg); } }
.mask-feather.r { animation-name: featherSwayR; } @keyframes featherSwayR { 0%,100% { transform: rotate(15deg); } 50% { transform: rotate(25deg); } }
.mask-content { position: absolute; inset-x: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent); }
.mask-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.mask-sub { font-size: 9px; color: rgba(200,150,180,0.5); }
Tailwind CSS
<div class="group relative w-[220px] min-h-[290px] rounded-2xl bg-gradient-to-b from-[#1a0a18] to-[#0e040c] border border-rose-500/20 overflow-hidden cursor-pointer group-hover:shadow-[0_0_30px_rgba(200,150,180,0.06)]">
  <div class="absolute left-1/2 top-[32%] -translate-x-1/2 -translate-y-1/2 w-20 h-16 [perspective:200px]">
    <div class="w-full h-full [transform-style:preserve-3d] transition-transform duration-500 group-hover:[transform:rotateY(-15deg)_rotateX(5deg)] group-[.tragedy]:[transform:rotateY(180deg)]">
      <div class="absolute inset-0 [backface-visibility:hidden] flex flex-col items-center justify-center">
        <div class="flex gap-3"><div class="w-2.5 h-2 rounded-full border-2 border-amber-500 bg-[#1a0a18]"></div><div class="w-2.5 h-2 rounded-full border-2 border-amber-500 bg-[#1a0a18]"></div></div>
        <span class="text-lg text-amber-500 mt-1">⌣</span>
      </div>
      <div class="absolute inset-0 [backface-visibility:hidden] [transform:rotateY(180deg)] flex flex-col items-center justify-center">
        <div class="flex gap-3"><div class="w-2.5 h-2 rounded-full border-2 border-gray-400 bg-[#1a0a18]"></div><div class="w-2.5 h-2 rounded-full border-2 border-gray-400 bg-[#1a0a18]"></div></div>
        <span class="text-lg text-gray-400 mt-1 rotate-180">⌢</span>
      </div>
    </div>
  </div>
  <div class="absolute inset-x-0 bottom-0 p-4 bg-gradient-to-t from-black/70 to-transparent">
    <p class="text-sm font-bold text-white/90">Masquerade</p>
    <p class="text-[9px] text-rose-500/50">Venetian Ball</p>
  </div>
</div>
React
import React, { useState } from 'react';
import { motion } from 'framer-motion';

export function MasqueradeMaskCard({ width = 220 }) {
  const [tragedy, setTragedy] = useState(false);
  const [isHovered, setIsHovered] = useState(false);
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => setIsHovered(false)}>
      <motion.div onClick={() => setTragedy(!tragedy)} whileTap={{ scale: 0.97 }} className="relative cursor-pointer" style={{ width }}>
        <motion.div className="relative rounded-2xl overflow-hidden" style={{ minHeight: 290, background: 'linear-gradient(160deg, #1a0a18, #0e040c)', border: '1.5px solid rgba(200,150,180,0.12)' }}>
          <motion.div className="absolute left-1/2 top-[32%] -translate-x-1/2 -translate-y-1/2" style={{ width: 80, height: 60, perspective: 200 }}>
            <motion.div className="w-full h-full rounded" style={{ transformStyle: 'preserve-3d' }}
              animate={{ rotateY: tragedy ? 180 : (isHovered ? -15 : 0), rotateX: isHovered ? 5 : 0 }}
              transition={{ type: 'spring', stiffness: 200, damping: 18 }}>
              <motion.div className="absolute inset-0 flex flex-col items-center justify-center" style={{ backfaceVisibility: 'hidden' }}>
                <div className="flex gap-3"><div className="w-2.5 h-2 rounded-full border-2 border-amber-500 bg-[#1a0a18]" /><div className="w-2.5 h-2 rounded-full border-2 border-amber-500 bg-[#1a0a18]" /></div>
                <span className="text-lg mt-1" style={{ color: '#d4a574' }}>⌣</span>
              </motion.div>
              <motion.div className="absolute inset-0 flex flex-col items-center justify-center" style={{ backfaceVisibility: 'hidden', transform: 'rotateY(180deg)' }}>
                <div className="flex gap-3"><div className="w-2.5 h-2 rounded-full border-2 border-gray-400 bg-[#1a0a18]" /><div className="w-2.5 h-2 rounded-full border-2 border-gray-400 bg-[#1a0a18]" /></div>
                <span className="text-lg mt-1" style={{ color: '#888', transform: 'rotate(180deg)' }}>⌢</span>
              </motion.div>
            </motion.div>
          </motion.div>
          <div className="absolute inset-x-0 bottom-0 p-4" style={{ background: 'linear-gradient(0deg, rgba(0,0,0,0.7), transparent)' }}>
            <p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>Masquerade</p>
            <p className="text-[9px]" style={{ color: 'rgba(200,150,180,0.5)' }}>{tragedy ? 'Tragedy' : 'Comedy'}</p>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Masquerade Mask Card fits

  • Theater Cards
  • Masquerade UI
  • Event Invitations
  • Performance Art
  • Costume Portfolios

Interaction states & animations

  • Mask rotation and tilt
  • Feather sway animation
  • Slow reveal turn
  • Expression swap (comedy/tragedy)
  • Elegant spin

Topics

  • #mask
  • #masquerade
  • #theater
  • #venetian
  • #elegant
  • #feather
  • #comedy
  • #tragedy
  • #ball
  • #costume

Accessibility notes

Mask rotation may cause mild motion sensitivity. prefers-reduced-motion shows both mask expressions side by side. Click alternative swaps expression.

Browser support

  • Chrome 76+
  • Firefox 90+
  • Safari 13+
  • Edge 79+