Skip to content

Aeolian Harp Card

The card is strung with invisible, taut strings that catch the digital wind. Content appears as vibrations along these strings. Hover changes the wind's direction and strength, altering the harmonic drone and making the text tremble. Clicking plucks a string, isolating its associated piece of information. The card's soundscape is entirely generated by interaction, a unique hum for every visitor.

Aeolian Harp Card

by FreeCsStyles Dev's

CardsAeolian/Acoustic
🌐🎨⚛️💚🅰️🔥☁️
#aeolian#harp#wind#string#harmonic#vibration#music#ambient#interactive#drone

Embed this component

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

<iframe src="/embed/aeolian-harp-card" sandbox="allow-scripts" loading="lazy" title="Aeolian Harp Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Aeolian Harp 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="harp-card" onclick="pluckString(this)">
  <div class="harp-strings" id="harp-strings"></div>
  <div class="harp-body"></div>
  <div class="harp-content">
    <div class="harp-header">
      <div><div class="harp-title">Aeolian Harp</div><div class="harp-sub">D-Minor</div></div>
      <div class="harp-status" id="harp-status">ZEPHYR</div>
    </div>
    <div class="harp-divider"></div>
    <div class="harp-grid">
      <div class="harp-stat"><div class="harp-stat-val">Zephyr</div><div class="harp-stat-lbl">Wind</div></div>
      <div class="harp-stat"><div class="harp-stat-val">12 kn</div><div class="harp-stat-lbl">Speed</div></div>
    </div>
    <div class="harp-hint" id="harp-hint">[▼ click to pluck a string]</div>
  </div>
</div>
<script>
function pluckString(el) {
  el.classList.add('plucked');
  setTimeout(() => el.classList.remove('plucked'), 1500);
}
</script>
CSS
.harp-card {
  position: relative;
  width: 220px;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a14, #0e0e1a);
  border: 1.5px solid rgba(150,140,200,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}

.harp-card:hover {
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(150,140,200,0.04);
}

.harp-body {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  bottom: 32%;
  border: 1px solid rgba(150,140,200,0.06);
  border-radius: 2px;
  background: rgba(150,140,200,0.02);
  pointer-events: none;
  z-index: 1;
}

.harp-strings {
  position: absolute;
  top: 15%;
  bottom: 35%;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.harp-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(10,10,20,0.95), rgba(10,10,20,0.4), transparent);
}

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

@media (prefers-reduced-motion: reduce) {
  .harp-card { transition: none; }
}
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-purple-300/20 shadow-lg group-hover:shadow-[0_20px_50px_rgba(0,0,0,0.5),inset_0_0_30px_rgba(150,140,200,0.04)] bg-gradient-to-b from-[#0a0a14] to-[#0e0e1a] cursor-pointer">
  <div class="absolute left-[8%] right-[8%] top-[12%] bottom-[32%] border border-purple-300/20 rounded-sm bg-white/[0.02] pointer-events-none z-1"></div>
  <div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-[#0a0a14]/95 via-[#0a0a14]/40 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-blue-200/90">Aeolian Harp</p><p class="text-[9px] text-purple-300/50">D-Minor</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-blue-200/60 bg-purple-500/10 border border-purple-500/20">ZEPHYR</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-purple-300/20 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-purple-500/10 border border-purple-500/20"><p class="text-[10px] font-semibold text-blue-200/60">Zephyr</p><p class="text-[7px] mt-0.5 text-white/20">Wind</p></div>
      <div class="text-center py-1.5 rounded-lg bg-purple-500/10 border border-purple-500/20"><p class="text-[10px] font-semibold text-blue-200/60">12 kn</p><p class="text-[7px] mt-0.5 text-white/20">Speed</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-purple-300/30">[▼ click to pluck a string]</span></div>
  </div>
</div>
React
import React, { useState, useRef, useCallback } from 'react';
import { motion, useMotionValue, useSpring, AnimatePresence } from 'framer-motion';

export function AeolianHarpCard() {
  const [isHovered, setIsHovered] = useState(false);
  const [pluckedString, setPluckedString] = useState(null);
  const [hoveredString, setHoveredString] = useState(null);
  const [windAngle, setWindAngle] = useState(0);
  const [windStrength, setWindStrength] = useState(0.5);
  const ref = useRef(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 strings = Array.from({ length: 8 }, (_, i) => ({ id: i, amplitude: 0.5 + Math.random() * 0.5, frequency: 0.5 + i * 0.3 }));
  const STRING_COLORS = ['rgba(200,180,255,0.4)', 'rgba(180,200,255,0.4)', 'rgba(160,220,255,0.4)', 'rgba(180,255,200,0.4)', 'rgba(255,220,180,0.4)', 'rgba(255,180,200,0.4)', 'rgba(255,180,255,0.4)', 'rgba(200,200,255,0.4)'];
  
  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)) * 10);
    y.set(((e.clientY - cy) / (rect.height / 2)) * 10);
    const dx = e.clientX - rect.left - rect.width / 2;
    const dy = e.clientY - rect.top - rect.height / 2;
    setWindAngle(Math.atan2(dy, dx) * (180 / Math.PI));
    const maxDist = Math.sqrt(rect.width * rect.width + rect.height * rect.height) / 2;
    setWindStrength(Math.min(1, Math.sqrt(dx * dx + dy * dy) / maxDist));
  };

  const handleClick = () => {
    const idx = hoveredString !== null ? hoveredString : Math.floor(Math.random() * strings.length);
    setPluckedString(idx);
    setTimeout(() => setPluckedString(null), 1500);
  };

  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); setHoveredString(null); setWindStrength(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={handleClick} style={{ rotateX, rotateY, transformStyle: 'preserve-3d', cursor: 'pointer' }}>
        <motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: 'linear-gradient(180deg, #0a0a14, #0e0e1a)', border: '1.5px solid rgba(150,140,200,0.1)' }}
          animate={{ boxShadow: isHovered ? '0 20px 50px rgba(0,0,0,0.5), inset 0 0 30px rgba(150,140,200,0.04)' : '0 10px 30px rgba(0,0,0,0.4)' }} 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(10,10,20,0.95), rgba(10,10,20,0.4), transparent)' }}>
            <div className="flex items-center justify-between">
              <div><p className="text-sm font-bold" style={{ color: 'rgba(200,200,255,0.9)' }}>Aeolian Harp</p><p className="text-[9px]" style={{ color: 'rgba(150,140,200,0.44)' }}>D-Minor</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(150,140,200,0.08)', border: '1px solid rgba(150,140,200,0.12)', color: 'rgba(200,200,255,0.6)' }}>{windStrength > 0.7 ? 'STORM' : windStrength > 0.4 ? 'GALE' : windStrength > 0.2 ? 'BREEZE' : 'ZEPHYR'}</motion.div>
            </div>
            <div className="h-px" style={{ background: 'linear-gradient(90deg, transparent, rgba(150,140,200,0.08), transparent)' }} />
            <div className="grid grid-cols-2 gap-2">
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(150,140,200,0.02)', border: '1px solid rgba(150,140,200,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: 'rgba(200,200,255,0.6)' }}>Zephyr</p><p className="text-[7px] mt-0.5 text-white/20">Wind</p></div>
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(150,140,200,0.02)', border: '1px solid rgba(150,140,200,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: 'rgba(200,200,255,0.6)' }}>12 kn</p><p className="text-[7px] mt-0.5 text-white/20">Speed</p></div>
            </div>
            <motion.div className="text-center" animate={isHovered ? { y: [0, -1, 0] } : {}} transition={{ duration: 1.5, repeat: isHovered ? Infinity : 0, ease: 'easeInOut' }}>
              <span className="text-[7px] font-mono" style={{ color: 'rgba(150,140,200,0.2)' }}>{pluckedString !== null ? `♪ plucked: ${['C3', 'D3', 'E3', 'F3', 'G3', 'A3', 'B3', 'C4'][pluckedString]}` : '[▼ click to pluck a string]'}</span>
            </motion.div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Aeolian Harp Card fits

  • Ambient Music
  • Meditation
  • Interactive Art
  • Sound Design
  • Creative Portfolios

Interaction states & animations

  • String vibration
  • Wind simulation
  • Harmonic oscillation
  • Particle drift
  • Pluck burst

Topics

  • #aeolian
  • #harp
  • #wind
  • #string
  • #harmonic
  • #vibration
  • #music
  • #ambient
  • #interactive
  • #drone

Accessibility notes

Visual vibration effects may be disorienting. Provide reduced motion alternative. The experience relies on visual-only sound cues; ensure content is accessible without the visual effects.

Browser support

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