Skip to content

Marbled Clay Card

Two or three differently colored clays folded and swirled together in a unique pattern per instance. The marbled pattern is unique to each card. Hovering slowly blends the colors together at the cursor point. Clicking cuts the card with a wire, revealing a clean cross-section with a new, sharp pattern. Colors never fully mix, preserving the marbled identity.

Marbled Clay Card

by FreeCsStyles Dev's

CardsClaymorphism
🌐🎨⚛️💚🅰️🔥☁️
#claymorphism#marbled#swirl#fold#cross-section#generative#unique#pattern#color-blend

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Marbled Clay 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="marble-card">
  <div class="marble-bg"></div>
  <svg class="marble-folds" viewBox="0 0 100 70" preserveAspectRatio="none">
    <path d="M 10 15 Q 30 25, 40 10" fill="none" stroke="rgba(196,113,75,0.3)" stroke-width="14" stroke-linecap="round"/>
    <path d="M 50 20 Q 70 35, 80 15" fill="none" stroke="rgba(196,169,125,0.2)" stroke-width="10" stroke-linecap="round"/>
    <path d="M 20 40 Q 40 55, 60 35" fill="none" stroke="rgba(196,113,75,0.25)" stroke-width="16" stroke-linecap="round"/>
  </svg>
  <div class="marble-content">
    <div class="marble-header">
      <div><div class="marble-title">Folded Earth</div><div class="marble-sub">Marble</div></div>
      <div class="marble-status">MARBLED</div>
    </div>
    <div class="marble-grid">
      <div class="marble-stat"><div class="marble-stat-val">6</div><div class="marble-stat-lbl">Folds</div></div>
      <div class="marble-stat"><div class="marble-stat-val">terracotta + sand</div><div class="marble-stat-lbl">Clays</div></div>
    </div>
    <div class="marble-hint">[▼ click to cut with wire]</div>
  </div>
</div>
CSS
.marble-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1a1410, #0e0a06); border: 1.5px solid rgba(196,113,75,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.marble-card:hover { box-shadow: 0 0 30px rgba(0,0,0,0.5), 0 15px 40px rgba(0,0,0,0.5); }
.marble-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(212,135,102,0.08), rgba(168,93,58,0.25)); }
.marble-folds { position: absolute; inset: 0; width: 100%; height: 68%; pointer-events: none; z-index: 2; }
.marble-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); }
.marble-header { display: flex; justify-content: space-between; align-items: center; }
.marble-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.marble-sub { font-size: 9px; color: rgba(212,135,102,0.37); }
.marble-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: rgba(212,135,102,0.6); background: rgba(196,113,75,0.08); border: 1px solid rgba(196,113,75,0.14); }
.marble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.marble-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(196,113,75,0.05); border: 1px solid rgba(196,113,75,0.07); }
.marble-stat-val { font-size: 10px; font-weight: 600; color: rgba(212,135,102,0.6); }
.marble-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.marble-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(196,113,75,0.18); margin-top: 8px; }
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-amber-700/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(0,0,0,0.5),0_15px_40px_rgba(0,0,0,0.5)] bg-gradient-to-b from-[#1a1410] to-[#0e0a06] cursor-pointer">
  <div class="absolute inset-0 bg-gradient-radial from-amber-600/10 to-amber-900/30"></div>
  <svg class="absolute inset-0 w-full h-[68%] z-[2] pointer-events-none" viewBox="0 0 100 70" preserveAspectRatio="none">
    <path d="M 10 15 Q 30 25, 40 10" fill="none" stroke="rgba(196,113,75,0.3)" stroke-width="14" stroke-linecap="round"/>
    <path d="M 50 20 Q 70 35, 80 15" fill="none" stroke="rgba(196,169,125,0.2)" stroke-width="10" 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/60 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-white/90">Folded Earth</p><p class="text-[9px] text-amber-400/40">Marble</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-amber-400/60 bg-amber-700/10 border border-amber-700/20">MARBLED</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-amber-700/10 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-amber-700/10 border border-amber-700/20"><p class="text-[10px] font-semibold text-amber-400/60">6</p><p class="text-[7px] mt-0.5 text-white/20">Folds</p></div>
      <div class="text-center py-1.5 rounded-lg bg-amber-700/10 border border-amber-700/20"><p class="text-[10px] font-semibold text-amber-400/60">terracotta + sand</p><p class="text-[7px] mt-0.5 text-white/20">Clays</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-amber-700/30">[▼ click to cut with wire]</span></div>
  </div>
</div>
React
import React, { useState, useRef, useMemo } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';

export function MarbledClayCard({ marbleName = 'Folded Earth', artist = 'Marble', width = 220 }) {
  const ref = useRef(null);
  const [isHovered, setIsHovered] = useState(false);
  const [isCut, setIsCut] = useState(false);
  const [blendPos, setBlendPos] = useState({ x: 50, y: 50 });
  const colors = { base: '#c4714b', light: '#d48766', dark: '#a85d3a' };
  const secondary = { base: '#c4a97d', light: '#d4bc99', dark: '#a88f66' };
  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);
    if (isHovered && !isCut) {
      setBlendPos({ x: ((e.clientX - rect.left) / rect.width) * 100, y: ((e.clientY - rect.top) / rect.height) * 100 });
    }
  };
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={() => setIsCut((p) => !p)} 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, #1a1410, #0e0a06)', border: '1.5px solid rgba(196,113,75,0.12)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(0,0,0,0.5), 0 15px 40px rgba(0,0,0,0.5)' : '0 10px 30px rgba(0,0,0,0.3)' }} transition={{ type: 'spring', stiffness: 260, 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" style={{ color: 'rgba(255,255,255,0.9)' }}>{marbleName}</p><p className="text-[9px]" style={{ color: 'rgba(212,135,102,0.37)' }}>{artist}</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(196,113,75,0.08)', border: '1px solid rgba(196,113,75,0.14)', color: 'rgba(212,135,102,0.6)' }}>{isCut ? 'CUT' : 'MARBLED'}</motion.div>
            </div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Marbled Clay Card fits

  • Unique generative art
  • Color palette showcases
  • Material design exploration
  • Abstract portfolio pieces
  • Collectible card variants

Interaction states & animations

  • Color swirl
  • Fold generation
  • Cursor blending
  • Wire-cut reveal
  • Cross-section display

Topics

  • #claymorphism
  • #marbled
  • #swirl
  • #fold
  • #cross-section
  • #generative
  • #unique
  • #pattern
  • #color-blend

Accessibility notes

The marbled pattern and color blending are visual effects. The wire-cut cross-section requires color differentiation. Provide text descriptions of the pattern state. The unique-per-instance pattern is decorative.

Browser support

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