Skip to content

Heartbeat Pulse Card

A living cardiac monitor with a slow, resting heartbeat rhythm that subtly expands and contracts. Hover excites the card, increasing pulse rate and intensity. Clicking triggers a deep, satisfying 'thump' and a larger expansion wave. Prolonged interaction causes a warm, rosy flush to develop, and the pulse normalizes slowly when the user disengages.

Heartbeat Pulse Card

by FreeCsStyles Dev's

CardsOrganic Morph
🌐🎨⚛️💚🅰️🔥☁️
#heartbeat#pulse#cardiac#ekg#biofeedback#living#organic#morph#interactive#vitals

Embed this component

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

<iframe src="/embed/heartbeat-pulse-card" sandbox="allow-scripts" loading="lazy" title="Heartbeat Pulse Card" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Heartbeat Pulse 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="heart-card">
  <div class="heart-ekg">
    <svg viewBox="0 0 180 60" class="ekg-svg">
      <path d="M 0 30 L 40 30 L 45 10 L 50 50 L 55 30 L 90 30 L 95 10 L 100 50 L 105 30 L 140 30 L 145 10 L 150 50 L 155 30 L 180 30" fill="none" stroke="#f43f5e" stroke-width="1.5" class="ekg-path"/>
    </svg>
  </div>
  <div class="heart-pulse-ring"></div>
  <div class="heart-content">
    <div class="heart-header">
      <div><div class="heart-title">Heartbeat Pulse</div><div class="heart-sub">Patient</div></div>
      <div class="heart-status">RESTING</div>
    </div>
    <div class="heart-grid">
      <div class="heart-stat"><div class="heart-stat-val">72</div><div class="heart-stat-lbl">BPM</div></div>
      <div class="heart-stat"><div class="heart-stat-val">Normal</div><div class="heart-stat-lbl">Flush</div></div>
    </div>
    <div class="heart-hint">[▼ hover to excite]</div>
  </div>
</div>
<style>
.heart-card { position: relative; width: 220px; min-height: 300px; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #14080a, #0e0406); border: 1.5px solid rgba(244,63,94,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.3); cursor: pointer; }
.heart-card:hover { box-shadow: 0 0 30px rgba(244,63,94,0.08), 0 15px 40px rgba(0,0,0,0.4); }
.heart-ekg { position: absolute; top: 15%; left: 10%; right: 10%; height: 60px; z-index: 3; pointer-events: none; }
.ekg-svg { width: 100%; height: 100%; }
.ekg-path { stroke: #f43f5e; filter: drop-shadow(0 0 3px rgba(244,63,94,0.25)); stroke-dasharray: 500; stroke-dashoffset: 500; animation: ekg-scroll 2s linear infinite; }
@keyframes ekg-scroll { 0% { stroke-dashoffset: 500; } 100% { stroke-dashoffset: 0; } }
.heart-pulse-ring { position: absolute; top: 44%; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; border: 1.5px solid rgba(244,63,94,0.15); border-radius: 50%; z-index: 3; pointer-events: none; animation: pulse-expand 1.2s ease-out infinite; }
@keyframes pulse-expand { 0% { transform: translateX(-50%) scale(0.8); opacity: 0.5; } 50% { transform: translateX(-50%) scale(1.15); opacity: 0.2; } 100% { transform: translateX(-50%) scale(0.8); opacity: 0.5; } }
.heart-content { position: absolute; inset-x: 0; bottom: 0; z-index: 10; padding: 20px; background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent); }
.heart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.heart-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.heart-sub { font-size: 9px; color: rgba(244,63,94,0.44); }
.heart-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #f43f5e; background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.12); }
.heart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.heart-stat { text-align: center; padding: 6px 4px; border-radius: 8px; background: rgba(244,63,94,0.02); border: 1px solid rgba(244,63,94,0.04); }
.heart-stat-val { font-size: 10px; font-weight: 600; color: #f43f5e; }
.heart-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }
.heart-hint { text-align: center; font-size: 7px; font-family: monospace; color: rgba(244,63,94,0.2); margin-top: 6px; }</style>
CSS
.heart-card {
  position: relative;
  width: 220px;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #14080a, #0e0406);
  border: 1.5px solid rgba(244,63,94,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
}

.heart-card:hover {
  box-shadow: 0 0 30px rgba(244,63,94,0.08), 0 15px 40px rgba(0,0,0,0.4);
}

.heart-ekg {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  height: 60px;
  z-index: 3;
  pointer-events: none;
}

.ekg-svg {
  width: 100%;
  height: 100%;
}

.ekg-path {
  stroke: #f43f5e;
  filter: drop-shadow(0 0 3px rgba(244,63,94,0.25));
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: ekg-scroll 2s linear infinite;
}

@keyframes ekg-scroll {
  0% { stroke-dashoffset: 500; }
  100% { stroke-dashoffset: 0; }
}

.heart-pulse-ring {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(244,63,94,0.15);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
  animation: pulse-expand 1.2s ease-out infinite;
}

@keyframes pulse-expand {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
  50% { transform: translateX(-50%) scale(1.15); opacity: 0.2; }
  100% { transform: translateX(-50%) scale(0.8); opacity: 0.5; }
}

.heart-content {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  z-index: 10;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}

.heart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.heart-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.9); }
.heart-sub { font-size: 9px; color: rgba(244,63,94,0.44); }
.heart-status { padding: 2px 8px; border-radius: 2px; font-size: 7px; font-weight: 700; letter-spacing: 0.1em; color: #f43f5e; background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.12); }

.heart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0;
}

.heart-stat {
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(244,63,94,0.02);
  border: 1px solid rgba(244,63,94,0.04);
}

.heart-stat-val { font-size: 10px; font-weight: 600; color: #f43f5e; }
.heart-stat-lbl { font-size: 7px; margin-top: 2px; color: rgba(255,255,255,0.2); }

.heart-hint {
  text-align: center;
  font-size: 7px;
  font-family: monospace;
  color: rgba(244,63,94,0.2);
  margin-top: 6px;
}
Tailwind CSS
<div class="group relative w-[220px] min-h-[300px] rounded-2xl overflow-hidden border border-rose-500/20 shadow-lg group-hover:shadow-[0_0_30px_rgba(244,63,94,0.08),0_15px_40px_rgba(0,0,0,0.4)] bg-gradient-to-b from-[#14080a] to-[#0e0406] cursor-pointer">
  <div class="absolute top-[15%] left-[10%] right-[10%] h-[60px] z-[3] pointer-events-none">
    <svg viewBox="0 0 180 60" class="w-full h-full">
      <path d="M 0 30 L 40 30 L 45 10 L 50 50 L 55 30 L 90 30 L 95 10 L 100 50 L 105 30 L 140 30 L 145 10 L 150 50 L 155 30 L 180 30" fill="none" stroke="#f43f5e" stroke-width="1.5" stroke-dasharray="500" class="group-hover:stroke-[2px]" style="stroke-dashoffset: 500; animation: ekg-scroll 1.5s linear infinite;"/>
    </svg>
  </div>
  <div class="absolute top-[44%] left-1/2 -translate-x-1/2 w-10 h-10 border-[1.5px] border-rose-500/20 rounded-full z-[3] pointer-events-none animate-pulse"></div>
  <div class="absolute inset-x-0 bottom-0 z-10 p-5 space-y-2 bg-gradient-to-t from-black/50 to-transparent">
    <div class="flex items-center justify-between">
      <div><p class="text-sm font-bold text-white/90">Heartbeat Pulse</p><p class="text-[9px] text-rose-500/50">Patient</p></div>
      <div class="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest text-rose-500 bg-rose-500/10 border border-rose-500/20">RESTING</div>
    </div>
    <div class="h-px bg-gradient-to-r from-transparent via-rose-500/10 to-transparent"></div>
    <div class="grid grid-cols-2 gap-2">
      <div class="text-center py-1.5 rounded-lg bg-rose-500/10 border border-rose-500/20"><p class="text-[10px] font-semibold text-rose-500">72</p><p class="text-[7px] mt-0.5 text-white/20">BPM</p></div>
      <div class="text-center py-1.5 rounded-lg bg-rose-500/10 border border-rose-500/20"><p class="text-[10px] font-semibold text-rose-500">Normal</p><p class="text-[7px] mt-0.5 text-white/20">Flush</p></div>
    </div>
    <div class="text-center"><span class="text-[7px] font-mono text-rose-500/30">[▼ hover to excite]</span></div>
  </div>
</div>
<style>
@keyframes ekg-scroll { 0% { stroke-dashoffset: 500; } 100% { stroke-dashoffset: 0; } }
</style>
React
import React, { useRef, useState, useEffect } from 'react';
import { motion, useMotionValue, useSpring } from 'framer-motion';

export function HeartbeatPulseCard() {
  const ref = useRef(null);
  const [isHovered, setIsHovered] = useState(false);
  const [isClicked, setIsClicked] = useState(false);
  const [bpm, setBpm] = useState(72);
  const [flush, setFlush] = useState(0);
  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);
  };
  useEffect(() => {
    if (isHovered) {
      const t = setInterval(() => setBpm((b) => Math.min(140, b + 2)), 600);
      const f = setInterval(() => setFlush((f) => Math.min(100, f + 3)), 700);
      return () => { clearInterval(t); clearInterval(f); };
    } else {
      const t = setTimeout(() => setBpm(72), 1000);
      const f = setTimeout(() => setFlush(0), 1500);
      return () => { clearTimeout(t); clearTimeout(f); };
    }
  }, [isHovered]);
  const handleClick = () => { setIsClicked(true); setBpm((b) => Math.min(160, b + 30)); setTimeout(() => setIsClicked(false), 800); setTimeout(() => setBpm(72), 1500); };
  return (
    <div onMouseEnter={() => setIsHovered(true)} onMouseLeave={() => { setIsHovered(false); x.set(0); y.set(0); }}>
      <motion.div ref={ref} onMouseMove={handleMouseMove} onClick={handleClick} style={{ rotateX, rotateY, transformStyle: 'preserve-3d' }} className="relative cursor-pointer">
        <motion.div className="relative overflow-hidden rounded-2xl" style={{ width: 220, minHeight: 300, background: 'linear-gradient(160deg, #14080a, #0e0406)', border: '1.5px solid rgba(244,63,94,0.08)' }}
          animate={{ boxShadow: isHovered ? '0 0 30px rgba(244,63,94,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 }}>
          {flush > 0 && <motion.div className="absolute inset-0 z-15 pointer-events-none rounded-2xl" style={{ background: `radial-gradient(ellipse at 50% 50%, rgba(244,63,94,${flush / 100 * 0.15}), transparent 70%)` }} animate={{ opacity: [0.3, 0.7, 0.3] }} transition={{ duration: 1.5, repeat: Infinity }} />}
          {isClicked && <motion.div className="absolute inset-0 z-20 pointer-events-none rounded-2xl" style={{ border: '2px solid #f43f5e' }} initial={{ scale: 0.95, opacity: 0.8 }} animate={{ scale: 1.05, opacity: 0 }} transition={{ duration: 0.6 }} />}
          <div className="absolute flex justify-center" style={{ top: '15%', left: '10%', right: '10%', height: 60, zIndex: 3, pointerEvents: 'none' }}>
            <svg viewBox="0 0 180 60" className="w-full h-full">
              <motion.path d="M 0 30 L 40 30 L 45 10 L 50 50 L 55 30 L 90 30 L 95 10 L 100 50 L 105 30 L 140 30 L 145 10 L 150 50 L 155 30 L 180 30" fill="none" stroke="#f43f5e" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round" style={{ filter: 'drop-shadow(0 0 3px rgba(244,63,94,0.25))' }} animate={{ pathLength: [0, 1] }} transition={{ duration: 1.5, repeat: Infinity, ease: 'linear' }} />
            </svg>
          </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.5), transparent)' }}>
            <div className="flex items-center justify-between">
              <div><p className="text-sm font-bold" style={{ color: 'rgba(255,255,255,0.9)' }}>Heartbeat Pulse</p><p className="text-[9px]" style={{ color: 'rgba(244,63,94,0.44)' }}>Patient</p></div>
              <motion.div className="px-2 py-0.5 rounded-sm text-[7px] font-bold tracking-widest" style={{ background: 'rgba(244,63,94,0.08)', border: '1px solid rgba(244,63,94,0.12)', color: '#f43f5e' }}>{isClicked ? 'THUMP' : isHovered ? 'EXCITED' : 'RESTING'}</motion.div>
            </div>
            <div className="h-px" style={{ background: 'linear-gradient(90deg, transparent, rgba(244,63,94,0.1), transparent)' }} />
            <div className="grid grid-cols-2 gap-2">
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(244,63,94,0.02)', border: '1px solid rgba(244,63,94,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: '#f43f5e' }}>{bpm}</p><p className="text-[7px] mt-0.5" style={{ color: 'rgba(255,255,255,0.2)' }}>BPM</p></div>
              <div className="text-center py-1.5 rounded-lg" style={{ background: 'rgba(244,63,94,0.02)', border: '1px solid rgba(244,63,94,0.04)' }}><p className="text-[10px] font-semibold" style={{ color: '#f43f5e' }}>{flush > 0 ? `${flush}%` : 'Normal'}</p><p className="text-[7px] mt-0.5" style={{ color: 'rgba(255,255,255,0.2)' }}>Flush</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(244,63,94,0.2)' }}>{isClicked ? '[▼ heart settles]' : '[▼ click for thump]'}</span>
            </motion.div>
          </div>
        </motion.div>
      </motion.div>
    </div>
  );
}

Where Heartbeat Pulse Card fits

  • Health dashboards
  • Wellness apps
  • Biofeedback interfaces
  • Vital signs monitors
  • Meditation timers

Interaction states & animations

  • Heartbeat pulse
  • Expansion wave
  • EKG line scroll
  • Flush overlay
  • Spring settle

Topics

  • #heartbeat
  • #pulse
  • #cardiac
  • #ekg
  • #biofeedback
  • #living
  • #organic
  • #morph
  • #interactive
  • #vitals

Accessibility notes

The pulsing heartbeat animation may cause discomfort for some users with photosensitive conditions. Provide prefers-reduced-motion fallback that shows a static cardiac state. The flush effect is purely decorative.

Browser support

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