Skip to content

Tapestry of Fates Card

The card is a loom with vertical warp threads. As the card loads, a shuttle animates across, weaving the content into existence line by line. Each stat or tag is a different colored thread woven into the fabric. Hovering over a thread highlights its entire path through the tapestry. Clicking snips a thread, revealing the 'reverse side' of the content (metadata or hidden notes).

Tapestry of Fates Card

by FreeCsStyles Dev's

CardsLoom Tapestry
🌐🎨⚛️💚🅰️🔥☁️
#tapestry#loom#weave#thread#fate#destiny#mythology#fabric#woven#craft

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Tapestry of Fates 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="tapestry-card">
  <div class="tapestry-warp"></div>
  <div class="tapestry-content">
    <div class="tapestry-header">
      <div class="tapestry-title">Weave of Destiny</div>
      <div class="tapestry-divider"></div>
    </div>
    <div class="tapestry-stats">
      <div class="tapestry-thread" onclick="this.classList.toggle('snipped')">
        <div class="tapestry-thread-header">
          <span class="tapestry-thread-label">Strength</span>
          <span class="tapestry-thread-value" style="color: #ef4444;">78</span>
        </div>
        <div class="tapestry-thread-bar" style="background: linear-gradient(90deg, #ef444430, transparent);"></div>
        <div class="tapestry-reverse">Base: 46 | Bonus: 32</div>
      </div>
      <div class="tapestry-thread" onclick="this.classList.toggle('snipped')">
        <div class="tapestry-thread-header">
          <span class="tapestry-thread-label">Wisdom</span>
          <span class="tapestry-thread-value" style="color: #f59e0b;">92</span>
        </div>
        <div class="tapestry-thread-bar" style="background: linear-gradient(90deg, #f59e0b30, transparent);"></div>
        <div class="tapestry-reverse">Base: 55 | Bonus: 37</div>
      </div>
      <div class="tapestry-thread" onclick="this.classList.toggle('snipped')">
        <div class="tapestry-thread-header">
          <span class="tapestry-thread-label">Fortune</span>
          <span class="tapestry-thread-value" style="color: #22c55e;">65</span>
        </div>
        <div class="tapestry-thread-bar" style="background: linear-gradient(90deg, #22c55e30, transparent);"></div>
        <div class="tapestry-reverse">Base: 39 | Bonus: 26</div>
      </div>
    </div>
    <div class="tapestry-legend">
      <span class="tapestry-dot" style="background: #ef4444;"></span>
      <span class="tapestry-dot" style="background: #f59e0b;"></span>
      <span class="tapestry-dot" style="background: #22c55e;"></span>
      <span class="tapestry-dot" style="background: #3b82f6;"></span>
    </div>
    <div class="tapestry-hint">[✂ snip thread to reveal]</div>
  </div>
</div>
<style>
.tapestry-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1a1410, #120e0a, #0a0806); border: 1.5px solid rgba(180,160,140,0.12); box-shadow: 0 10px 30px rgba(0,0,0,0.4); cursor: pointer; }
.tapestry-card:hover { box-shadow: 0 0 30px rgba(180,160,140,0.06), 0 15px 40px rgba(0,0,0,0.5); }
.tapestry-warp { position: absolute; inset: 0; pointer-events: none; }
.tapestry-warp::before { content: ''; position: absolute; top: 0; left: 10%; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(239,68,68,0.06), transparent); animation: warpPulse 3s ease-in-out infinite; }
.tapestry-warp::after { content: ''; position: absolute; top: 0; right: 20%; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(59,130,246,0.06), transparent); animation: warpPulse 3s ease-in-out infinite 1s; }
@keyframes warpPulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.5; } }
.tapestry-content { position: relative; z-index: 10; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tapestry-header { text-align: center; }
.tapestry-title { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(180,160,140,0.8); }
.tapestry-divider { height: 1px; width: 60%; margin: 8px auto 0; background: linear-gradient(90deg, transparent, rgba(180,160,140,0.15), transparent); }
.tapestry-stats { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.tapestry-thread { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.02); transition: background 0.3s ease; }
.tapestry-thread:hover { background: rgba(255,255,255,0.04); }
.tapestry-thread-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; }
.tapestry-thread-label { font-size: 9px; font-weight: 600; letter-spacing: 0.05em; color: rgba(180,160,140,0.6); }
.tapestry-thread-value { font-size: 11px; font-weight: 700; }
.tapestry-thread-bar { height: 1.5px; margin: 0 10px 4px; border-radius: 1px; }
.tapestry-reverse { display: none; padding: 0 10px 10px; font-size: 7px; font-family: monospace; text-align: center; }
.tapestry-thread.snipped .tapestry-reverse { display: block; animation: reverseReveal 0.3s ease-out; }
@keyframes reverseReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.tapestry-legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tapestry-dot { width: 5px; height: 5px; border-radius: 50%; opacity: 0.25; }
.tapestry-hint { font-size: 7px; font-family: monospace; color: rgba(180,160,140,0.12); }
@media (prefers-reduced-motion: reduce) { .tapestry-warp::before, .tapestry-warp::after { animation: none; } }</style>
CSS
.tapestry-card {
  position: relative;
  width: 220px;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a1410, #120e0a, #0a0806);
  border: 1.5px solid rgba(180,160,140,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}

.tapestry-card:hover {
  box-shadow: 0 0 30px rgba(180,160,140,0.06), 0 15px 40px rgba(0,0,0,0.5);
}

.tapestry-warp {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tapestry-warp::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 0.5px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(239,68,68,0.08), transparent);
  animation: warpPulse 3s ease-in-out infinite;
}

.tapestry-warp::after {
  content: '';
  position: absolute;
  top: 0;
  right: 20%;
  width: 0.5px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(59,130,246,0.08), transparent);
  animation: warpPulse 3s ease-in-out infinite 1s;
}

@keyframes warpPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.tapestry-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tapestry-header { text-align: center; }
.tapestry-title { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(180,160,140,0.8); }
.tapestry-divider { height: 1px; width: 60%; margin: 8px auto 0; background: linear-gradient(90deg, transparent, rgba(180,160,140,0.15), transparent); }
.tapestry-stats { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.tapestry-thread { position: relative; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.02); transition: background 0.3s ease; cursor: pointer; }
.tapestry-thread:hover { background: rgba(255,255,255,0.04); }
.tapestry-thread-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; }
.tapestry-thread-label { font-size: 9px; font-weight: 600; letter-spacing: 0.05em; color: rgba(180,160,140,0.6); }
.tapestry-thread-value { font-size: 11px; font-weight: 700; }
.tapestry-thread-bar { height: 1.5px; margin: 0 10px 4px; border-radius: 1px; }
.tapestry-reverse { display: none; padding: 0 10px 10px; font-size: 7px; font-family: monospace; text-align: center; }
.tapestry-thread.snipped .tapestry-reverse { display: block; animation: reverseReveal 0.3s ease-out; }
@keyframes reverseReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tapestry-legend { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tapestry-dot { width: 5px; height: 5px; border-radius: 50%; opacity: 0.25; }
.tapestry-hint { font-size: 7px; font-family: monospace; color: rgba(180,160,140,0.12); }

@media (prefers-reduced-motion: reduce) {
  .tapestry-warp::before, .tapestry-warp::after { animation: none; }
}
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-amber-900/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(180,160,140,0.06),0_15px_40px_rgba(0,0,0,0.5)] bg-gradient-to-br from-[#1a1410] via-[#120e0a] to-[#0a0806] cursor-pointer">
  <div class="absolute inset-0 pointer-events-none">
    <div class="absolute top-0 left-[10%] w-px h-full bg-gradient-to-b from-transparent via-red-400/10 to-transparent animate-pulse"></div>
    <div class="absolute top-0 right-[20%] w-px h-full bg-gradient-to-b from-transparent via-blue-400/10 to-transparent animate-pulse" style="animation-delay: 1s"></div>
    <div class="absolute top-0 left-[30%] w-px h-full bg-gradient-to-b from-transparent via-emerald-400/10 to-transparent animate-pulse" style="animation-delay: 2s"></div>
    <div class="absolute top-0 left-[50%] w-px h-full bg-gradient-to-b from-transparent via-yellow-400/10 to-transparent animate-pulse" style="animation-delay: 0.5s"></div>
  </div>
  <div class="relative z-10 p-5 space-y-4 text-center">
    <div class="space-y-2"><p class="text-[10px] font-bold tracking-wider uppercase text-amber-200/80">Weave of Destiny</p><div class="h-px w-3/5 mx-auto bg-gradient-to-r from-transparent via-amber-200/20 to-transparent"></div></div>
    <div class="space-y-3">
      <div class="rounded-lg p-2.5 cursor-pointer hover:bg-white/5 transition-colors border border-white/5"><div class="flex justify-between items-center"><span class="text-[9px] font-semibold tracking-wider text-amber-200/60">Strength</span><span class="text-[11px] font-bold" style="color: #ef4444;">78</span></div><div class="mt-1 h-px bg-gradient-to-r from-red-400/30 to-transparent"></div></div>
      <div class="rounded-lg p-2.5 cursor-pointer hover:bg-white/5 transition-colors border border-white/5"><div class="flex justify-between items-center"><span class="text-[9px] font-semibold tracking-wider text-amber-200/60">Wisdom</span><span class="text-[11px] font-bold" style="color: #f59e0b;">92</span></div><div class="mt-1 h-px bg-gradient-to-r from-amber-400/30 to-transparent"></div></div>
      <div class="rounded-lg p-2.5 cursor-pointer hover:bg-white/5 transition-colors border border-white/5"><div class="flex justify-between items-center"><span class="text-[9px] font-semibold tracking-wider text-amber-200/60">Fortune</span><span class="text-[11px] font-bold" style="color: #22c55e;">65</span></div><div class="mt-1 h-px bg-gradient-to-r from-emerald-400/30 to-transparent"></div></div>
    </div>
    <div class="flex justify-center gap-1.5"><div class="w-[5px] h-[5px] rounded-full bg-red-400 opacity-25"></div><div class="w-[5px] h-[5px] rounded-full bg-amber-400 opacity-25"></div><div class="w-[5px] h-[5px] rounded-full bg-emerald-400 opacity-25"></div><div class="w-[5px] h-[5px] rounded-full bg-blue-400 opacity-25"></div></div>
    <div class="text-[7px] font-mono text-amber-200/20">[✂ snip thread to reveal]</div>
  </div>
</div>
React
import React, { useRef, useState, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function TapestryOfFatesCard() {
  const ref = useRef(null);
  const [isHovered, setIsHovered] = useState(false);
  const [showReverse, setShowReverse] = useState(false);
  const [hoveredThread, setHoveredThread] = useState(null);
  const x = useMotionValue(0);
  const y = useMotionValue(0);
  const rotateX = useSpring(y, { damping: 25, stiffness: 250 });
  const rotateY = useSpring(x, { damping: 25, stiffness: 250 });
  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)) * 8);
    y.set(((e.clientY - cy) / (rect.height / 2)) * 8);
  };
  const threadColors = ['#ef4444', '#f59e0b', '#22c55e'];
  const stats = [
    { label: 'Strength', value: '78', reverse: 'Base: 46 | Bonus: 32' },
    { label: 'Wisdom', value: '92', reverse: 'Base: 55 | Bonus: 37' },
    { label: 'Fortune', value: '65', reverse: 'Base: 39 | Bonus: 26' },
  ];
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); setHoveredThread(null); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} 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, #1a1410, #120e0a, #0a0806)', border: '1.5px solid rgba(180,160,140,0.12)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(180,160,140,0.06), 0 15px 40px rgba(0,0,0,0.5)' : '0 10px 30px rgba(0,0,0,0.4)' }} transition={{ type: 'spring', stiffness: 280, damping: 20 }}>
          <div className="relative z-10 p-5 space-y-4">
            <div className="text-center" style={{ transform: 'translateZ(20px)' }}>
              <p className="text-[10px] font-bold tracking-widest uppercase" style={{ color: 'rgba(180,160,140,0.8)' }}>Weave of Destiny</p>
              <div className="h-px w-3/5 mx-auto mt-2" style={{ background: 'linear-gradient(90deg, transparent, rgba(180,160,140,0.15), transparent)' }} />
            </div>
            <div className="space-y-3" style={{ transformStyle: 'preserve-3d' }}>
              {stats.map((stat, idx) => (
                <motion.div key={idx} className="relative rounded-lg overflow-hidden cursor-pointer" style={{ background: hoveredThread === idx ? `${threadColors[idx]}08` : 'rgba(255,255,255,0.02)', border: `1px solid ${hoveredThread === idx ? threadColors[idx] : 'rgba(255,255,255,0.04)'}20` }}
                  onMouseEnter={() => setHoveredThread(idx)} onMouseLeave={() => setHoveredThread(null)} onClick={() => setShowReverse(prev => !prev)}>
                  {showReverse && <motion.div className="absolute inset-0 z-30 flex items-center justify-center p-2.5" style={{ background: `${threadColors[idx]}12`, backdropFilter: 'blur(4px)' }}
                    initial={{ rotateY: 90, opacity: 0 }} animate={{ rotateY: 0, opacity: 1 }} exit={{ rotateY: -90, opacity: 0 }} transition={{ type: 'spring', stiffness: 200, damping: 20 }}>
                    <p className="text-[7px] text-center font-mono" style={{ color: threadColors[idx] }}>{stat.reverse}</p>
                  </motion.div>}
                  <div className="relative z-20 p-2.5">
                    <div className="flex justify-between items-center">
                      <motion.span className="text-[9px] font-semibold tracking-wider" style={{ color: hoveredThread === idx ? threadColors[idx] : 'rgba(180,160,140,0.6)' }}>{stat.label}</motion.span>
                      <motion.span className="text-[11px] font-bold" style={{ color: threadColors[idx] }}>{stat.value}</motion.span>
                    </div>
                    <motion.div className="mt-1" style={{ height: 1.5, borderRadius: 1, background: `linear-gradient(90deg, ${threadColors[idx]}30, transparent)` }}
                      animate={hoveredThread === idx ? { opacity: [0.3, 0.8, 0.3] } : { opacity: 0.3 }} transition={{ duration: 1.5, repeat: hoveredThread === idx ? Infinity : 0 }} />
                  </div>
                </motion.div>
              ))}
            </div>
            <div className="flex justify-center gap-1.5 flex-wrap" style={{ transform: 'translateZ(15px)' }}>
              {threadColors.map((color, i) => (<div key={i} className="w-[5px] h-[5px] rounded-full" style={{ background: color, opacity: hoveredThread === i ? 0.8 : 0.25 }} />))}
            </div>
            <motion.div animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0 }} className="text-center text-[7px] font-mono" style={{ color: 'rgba(180,160,140,0.12)' }}>{showReverse ? '[∞ weave again]' : '[✂ snip thread to reveal]'}</motion.div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Tapestry of Fates Card fits

  • Mythology
  • Fantasy
  • Fate
  • Destiny
  • Storytelling
  • Lore

Interaction states & animations

  • Weave reveal
  • Shuttle animation
  • Thread highlight
  • Thread snip
  • Reverse side flip

Topics

  • #tapestry
  • #loom
  • #weave
  • #thread
  • #fate
  • #destiny
  • #mythology
  • #fabric
  • #woven
  • #craft

Accessibility notes

Ensure text contrast on dark backgrounds. Provide prefers-reduced-motion fallback to disable weave, shuttle, and thread animations. Color is not the only indicator for thread states.

Browser support

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