Skip to content

Spider's Web Card

A delicate, dew-covered web anchored in a dark corner. Content manifests as glowing dewdrops at key intersection points. Hovering sends vibrations through the web, making all drops tremble. Clicking a drop frees it and a spider skitters over to repair the strand.

Spider's Web Card

by FreeCsStyles Dev's

CardsSpider Web Gothic
🌐🎨⚛️💚🅰️🔥☁️
#Spider#Web#Dewdrops#Dark#Atmospheric#SVG#Interactive

Embed this component

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

<iframe src="/embed/spiders-web-card" sandbox="allow-scripts" loading="lazy" title="Spider's Web Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Spider's Web 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="web-card">
  <svg class="web-svg" viewBox="0 0 100 80">
    <line x1="50" y1="40" x2="95" y2="10" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="90" y2="45" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="10" y2="10" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="5" y2="40" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <path d="M 25 25 L 40 18 L 60 18 L 75 25" fill="none" stroke="rgba(129,140,248,0.1)" stroke-width="0.3"/>
    <path d="M 15 40 L 30 30 L 70 30 L 85 40" fill="none" stroke="rgba(129,140,248,0.1)" stroke-width="0.3"/>
  </svg>
  <div class="web-drops">
    <div class="web-drop" style="left:30%;top:30%" onclick="freeDrop(this)"></div>
    <div class="web-drop" style="left:50%;top:18%" onclick="freeDrop(this)"></div>
    <div class="web-drop" style="left:70%;top:30%" onclick="freeDrop(this)"></div>
    <div class="web-drop" style="left:20%;top:42%" onclick="freeDrop(this)"></div>
  </div>
  <div class="web-content">
    <div class="web-header">
      <div><div class="web-title">Silken Archive</div><div class="web-sub">Spider's Web</div></div>
      <div class="web-status">7</div>
    </div>
    <div class="web-hint">[▼ click drops to free them]</div>
  </div>
</div>
CSS
.web-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #060612, #04040e); border: 1.5px solid rgba(129,140,248,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.web-card:hover { box-shadow: 0 0 30px rgba(129,140,248,0.06), 0 15px 40px rgba(0,0,0,0.4); }
.web-svg { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.5; }
.web-drops { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.web-drop { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), rgba(129,140,248,0.3)); border: 1px solid rgba(129,140,248,0.15); cursor: pointer; pointer-events: auto; transform: translate(-50%,-50%); }
.web-drop:hover { box-shadow: 0 0 8px rgba(129,140,248,0.2); }
.web-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent); }
.web-header { display: flex; justify-content: space-between; align-items: center; }
.web-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.web-sub { font-size: 9px; color: rgba(129,140,248,0.44); }
.web-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #818cf8; background: rgba(129,140,248,0.08); border: 1px solid rgba(129,140,248,0.12); }
.web-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(129,140,248,0.2); margin-top: 8px; }
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-indigo-400/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(129,140,248,0.06),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-b from-[#060612] to-[#04040e] cursor-pointer">
  <svg class="absolute inset-0 z-[2] pointer-events-none opacity-50" viewBox="0 0 100 80">
    <line x1="50" y1="40" x2="95" y2="10" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="90" y2="45" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="10" y2="10" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <line x1="50" y1="40" x2="5" y2="40" stroke="rgba(129,140,248,0.15)" stroke-width="0.4"/>
    <path d="M 25 25 L 40 18 L 60 18 L 75 25" fill="none" stroke="rgba(129,140,248,0.1)" stroke-width="0.3"/>
    <path d="M 15 40 L 30 30 L 70 30 L 85 40" fill="none" stroke="rgba(129,140,248,0.1)" stroke-width="0.3"/>
  </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">Silken Archive</p><p class="text-[9px] text-indigo-400/50">Spider's Web</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-indigo-400 bg-indigo-500/10 border border-indigo-500/20">7</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-indigo-500/10 to-transparent"></div>
    <div class="text-center"><span class="text-[7px] font-mono text-indigo-400/30">[▼ click drops to free them]</span></div>
  </div>
</div>
React
import React, { useState, useRef, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function SpidersWebCard({ webName = 'Silken Archive', width = 220 }) {
  const [isHovered, setIsHovered] = useState(false);
  const [freedDrops, setFreedDrops] = useState(new Set());
  const [repairing, setRepairing] = useState(null);
  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);
  };
  const freeDrop = (idx, e) => {
    e.stopPropagation();
    if (freedDrops.has(idx) || repairing !== null) return;
    setFreedDrops(new Set([...freedDrops, idx]));
    setRepairing(idx);
    setTimeout(() => { setRepairing(null); setTimeout(() => { const next = new Set(freedDrops); next.delete(idx); setFreedDrops(next); }, 500); }, 1500);
  };
  const drops = [{ x: 30, y: 28 }, { x: 50, y: 18 }, { x: 70, y: 28 }, { x: 18, y: 42 }, { x: 82, y: 42 }, { x: 30, y: 52 }, { x: 70, y: 52 }];
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} 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, #060612, #04040e)', border: '1.5px solid rgba(129,140,248,0.1)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(129,140,248,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 }}>
          {drops.map((drop, idx) => (
            !freedDrops.has(idx) && (
              <motion.div key={idx} className="absolute z-[3]" style={{ left: `${drop.x}%`, top: `${drop.y}%`, transform: 'translate(-50%,-50%)' }}
                onClick={(e) => freeDrop(idx, e)}
                animate={isHovered && repairing !== idx ? { scale: [1, 1.08, 1] } : { scale: 1 }}
                transition={{ duration: 1.5, repeat: isHovered && repairing !== idx ? Infinity : 0, delay: idx * 0.15 }}>
                <div className="rounded-full cursor-pointer" style={{ width: 10, height: 10, background: 'radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), rgba(129,140,248,0.3))', border: '1px solid rgba(129,140,248,0.15)' }} />
              </motion.div>
            )
          ))}
          <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)' }}>{webName}</p><p className="text-[9px]" style={{ color: 'rgba(129,140,248,0.44)' }}>Spider's Web</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(129,140,248,0.08)', border: '1px solid rgba(129,140,248,0.12)', color: '#818cf8' }}>{freedDrops.size > 0 ? `${drops.length - freedDrops.size}/${drops.length}` : `${drops.length}`}</motion.div>
            </div>
            <div className="text-center"><span className="text-[7px] font-mono" style={{ color: 'rgba(129,140,248,0.2)' }}>{freedDrops.size > 0 ? '[▼ reset web]' : '[▼ click drops to free them]'}</span></div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Spider's Web Card fits

  • Data visualization network
  • Task management map
  • Connection graphs
  • Interactive dashboards

Interaction states & animations

  • Web vibration
  • Dewdrop tremble
  • Spider skitter
  • Drop free animation
  • Web repair effect

Topics

  • #Spider
  • #Web
  • #Dewdrops
  • #Dark
  • #Atmospheric
  • #SVG
  • #Interactive

Accessibility notes

Visual vibrations and small spiders may be triggering. Provide reduced motion alternative. The web structure relies on visual patterns.

Browser support

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