{
  "id": "animated-checkmark",
  "name": "Animated Checkmark",
  "category": "effects",
  "tags": [
    "checkmark",
    "success",
    "svg",
    "stroke",
    "draw",
    "animation"
  ],
  "description": "A success checkmark that draws itself with an SVG stroke animation.",
  "url": "https://copy-css.com/snippets/animated-checkmark",
  "markdown": "https://copy-css.com/snippets/animated-checkmark.md",
  "html": "<svg class=\"checkmark\" viewBox=\"0 0 52 52\" aria-label=\"Success\">\n  <circle cx=\"26\" cy=\"26\" r=\"24\"/>\n  <path d=\"M15 27l7 7 15-15\"/>\n</svg>",
  "css": "/* Remove \"infinite\" from both animations to play it once */\n.checkmark {\n  width: 72px;\n  height: 72px;\n  fill: none;\n  stroke: #22c55e;\n  stroke-width: 3;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.checkmark circle {\n  stroke-dasharray: 151;\n  animation: check-circle 3s ease infinite;\n}\n\n.checkmark path {\n  stroke-dasharray: 32;\n  animation: check-tick 3s ease infinite;\n}\n\n@keyframes check-circle {\n  0% { stroke-dashoffset: 151; }\n  25%, 100% { stroke-dashoffset: 0; }\n}\n\n@keyframes check-tick {\n  0%, 20% { stroke-dashoffset: 32; }\n  35%, 100% { stroke-dashoffset: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .checkmark circle,\n  .checkmark path {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "reduced-motion support"
  ],
  "customProperties": []
}
