{
  "id": "heartbeat-loader",
  "name": "Heartbeat Loader",
  "category": "loaders",
  "tags": [
    "heartbeat",
    "pulse",
    "ecg",
    "svg",
    "stroke",
    "health"
  ],
  "description": "A pulse line that traces across like a heart monitor, using an SVG stroke dash animation.",
  "url": "https://copy-css.com/snippets/heartbeat-loader",
  "markdown": "https://copy-css.com/snippets/heartbeat-loader.md",
  "html": "<svg class=\"heartbeat\" viewBox=\"0 0 120 40\" role=\"img\" aria-label=\"Loading\">\n  <path pathLength=\"100\" d=\"M0 20H34L40 10 46 30 54 4 62 36 68 20H120\"/>\n</svg>",
  "css": ".heartbeat {\n  width: 160px;\n  height: 54px;\n  overflow: visible;\n}\n\n.heartbeat path {\n  fill: none;\n  stroke: #ef4444;\n  stroke-width: 2.5;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 30 100;\n  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7));\n  animation: heartbeat 1.6s linear infinite;\n}\n\n@keyframes heartbeat {\n  from { stroke-dashoffset: 30; }\n  to { stroke-dashoffset: -100; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .heartbeat path {\n    animation-duration: 3.2s;\n  }\n}",
  "features": [
    "keyframe animations",
    "filters",
    "reduced-motion support"
  ],
  "customProperties": []
}
