Skip to content

Artist Studio Card

A blank canvas that gets painted live on click through stages: Blank, Artist enters, Painting, Drying, Signed. Paint drips and brush strokes animate as the masterpiece takes shape.

Artist Studio Card

by FreeCsStyles Dev's

CardsArtist Studio
🌐🎨⚛️

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Artist Studio 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="studio-card" onclick="cycleStudio(this)">
  <div class="studio-easel"></div>
  <div class="studio-canvas" id="studio-canvas"></div>
  <div class="studio-content">
    <div class="studio-header">
      <div><div class="studio-title">Atelier</div><div class="studio-sub">Oil on canvas</div></div>
      <div class="studio-status" id="studio-status">BLANK</div>
    </div>
    <div class="studio-divider"></div>
    <div class="studio-grid">
      <div class="studio-stat"><div class="studio-stat-val">Claude</div><div class="studio-stat-lbl">Artist</div></div>
      <div class="studio-stat"><div class="studio-stat-val">40x30</div><div class="studio-stat-lbl">Canvas</div></div>
    </div>
    <div class="studio-hint" id="studio-hint">[▼ click to create]</div>
  </div>
</div>
<script>
const stages = ['BLANK', 'ARTIST IN', 'PAINTING', 'DRYING', 'SIGNED'];
let studioStage = 0;
function cycleStudio(el) {
  studioStage = (studioStage + 1) % 5;
  document.getElementById('studio-status').textContent = stages[studioStage];
  const canvas = document.getElementById('studio-canvas');
  canvas.className = 'studio-canvas';
  if (studioStage >= 2) canvas.classList.add('painted');
  document.getElementById('studio-hint').textContent = studioStage >= 4 ? '[▼ new canvas]' : '[▼ click to create]';
}
</script>
CSS
.studio-card {
  position: relative;
  width: 220px;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #181008, #100a06);
  border: 1.5px solid rgba(251,146,60,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.4s ease;
}

.studio-card:hover {
  box-shadow: 0 0 30px rgba(251,146,60,0.08), 0 15px 40px rgba(0,0,0,0.4);
}

.studio-easel {
  position: absolute;
  top: 8%;
  left: 12%;
  right: 12%;
  bottom: 35%;
  pointer-events: none;
  z-index: 2;
  border-left: 2px solid rgba(139,105,20,0.25);
  border-right: 2px solid rgba(139,105,20,0.25);
  border-bottom: 2px solid rgba(139,105,20,0.25);
  border-radius: 0 0 4px 4px;
}

.studio-canvas {
  position: absolute;
  top: 12%;
  left: 20%;
  right: 20%;
  bottom: 38%;
  border-radius: 2px;
  background: #1a1a1a;
  border: 1px solid rgba(251,146,60,0.12);
  z-index: 3;
  pointer-events: none;
  transition: all 0.3s;
}

.studio-canvas.painted {
  background: linear-gradient(135deg, #e74c3c40, #f39c1240, #2ecc7140);
}

.studio-content {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  z-index: 10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}

.studio-header { display: flex; justify-content: space-between; align-items: center; }
.studio-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.studio-sub { font-size: 9px; color: rgba(251,146,60,0.44); }
.studio-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #fb923c; background: rgba(251,146,60,0.1); border: 1px solid rgba(251,146,60,0.12); }
.studio-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(251,146,60,0.08), transparent); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.studio-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(251,146,60,0.02); border: 1px solid rgba(251,146,60,0.06); }
.studio-stat-val { font-size: 10px; font-weight: 600; color: #fb923c; }
.studio-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.studio-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(251,146,60,0.2); }

@media (prefers-reduced-motion: reduce) {
  .studio-card { transition: none; }
}
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-orange-400/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(251,146,60,0.08),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-br from-[#181008] to-[#100a06] cursor-pointer">
  <div class="absolute top-[8%] left-[12%] right-[12%] bottom-[35%] pointer-events-none z-2 border-l-2 border-r-2 border-b-2 border-amber-900/30 rounded-b-sm"></div>
  <div class="absolute top-[12%] left-[20%] right-[20%] bottom-[38%] rounded-sm bg-neutral-900 border border-orange-400/20 z-3 pointer-events-none group-hover:bg-gradient-to-br group-hover:from-red-500/30 group-hover:via-amber-500/30 group-hover:to-emerald-500/30 transition-all duration-700"></div>
  <div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/60 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-white/90">Atelier</p><p class="text-[9px] text-orange-400/50">Oil on canvas</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-orange-400 bg-orange-500/10 border border-orange-500/20">BLANK</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-orange-400/20 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-orange-500/10 border border-orange-500/20"><p class="text-[10px] font-semibold text-orange-400">Claude</p><p class="text-[7px] mt-0.5 text-white/20">Artist</p></div>
      <div class="text-center py-1.5 rounded-lg bg-orange-500/10 border border-orange-500/20"><p class="text-[10px] font-semibold text-orange-400">40x30</p><p class="text-[7px] mt-0.5 text-white/20">Canvas</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-orange-400/30">[▼ click to create]</span></div>
  </div>
</div>
React
import React, { useState, useRef } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';

export function ArtistStudioCard() {
  const [isHovered, setIsHovered] = useState(false);
  const [stage, setStage] = useState(0);
  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();
    const cx = rect.left + rect.width / 2;
    const cy = rect.top + rect.height / 2;
    x.set(-((e.clientX - cx) / (rect.width / 2)) * 6);
    y.set(((e.clientY - cy) / (rect.height / 2)) * 6);
  };
  const stageLabels = ['BLANK', 'ARTIST IN', 'PAINTING', 'DRYING', 'SIGNED'];
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => setStage((prev) => (prev + 1) % 5)} style={{ rotateX, rotateY, transformStyle: 'preserve-3d', cursor: 'pointer' }}>
        <motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: 'linear-gradient(160deg, #181008, #100a06)', border: '1.5px solid rgba(251,146,60,0.08)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(251,146,60,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 }}>
          <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.6), transparent)' }}>
            <div className="flex items-center justify-between">
              <div><p className="text-sm font-bold text-white/90">Atelier</p><p className="text-[9px]" style={{ color: 'rgba(251,146,60,0.44)' }}>Oil on canvas</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(251,146,60,0.1)', border: '1px solid rgba(251,146,60,0.12)', color: '#fb923c' }}>{stageLabels[stage]}</motion.div>
            </div>
            <div className="h-px" style={{ background: 'linear-gradient(90deg, transparent, rgba(251,146,60,0.08), transparent)' }} />
            <div className="grid grid-cols-2 gap-2">
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(251,146,60,0.02)', border: '1px solid rgba(251,146,60,0.06)' }}><p className="text-[10px] font-semibold" style={{ color: '#fb923c' }}>Claude</p><p className="text-[7px] mt-0.5 text-white/20">Artist</p></div>
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(251,146,60,0.02)', border: '1px solid rgba(251,146,60,0.06)' }}><p className="text-[10px] font-semibold" style={{ color: '#fb923c' }}>40x30</p><p className="text-[7px] mt-0.5 text-white/20">Canvas</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(251,146,60,0.2)' }}>{stage >= 4 ? '[▼ new canvas]' : '[▼ click to create]'}</span>
            </motion.div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Interaction states & animations

  • Hover