{
  "id": "animated-strikethrough",
  "name": "Animated Strikethrough",
  "category": "text",
  "tags": [
    "line-through",
    "price",
    "crossed out",
    "sale",
    "del"
  ],
  "description": "A marker line that slashes through old text, handy for sale prices and before-and-after copy.",
  "url": "https://copy-css.com/snippets/animated-strikethrough",
  "markdown": "https://copy-css.com/snippets/animated-strikethrough.md",
  "html": "<p class=\"strike-note\">Was <s class=\"strike-line\">$49</s> now $29</p>",
  "css": ".strike-note {\n  margin: 0;\n  color: #111827;\n  font: 800 34px/1.3 system-ui, sans-serif;\n}\n\n.strike-line {\n  position: relative;\n  color: #6b7280;\n  text-decoration: none;\n}\n\n.strike-line::after {\n  content: \"\";\n  position: absolute;\n  top: 48%;\n  left: -0.1em;\n  right: -0.1em;\n  height: 0.12em;\n  border-radius: 1em;\n  background: #e11d48;\n  transform: rotate(-8deg) scaleX(0);\n  transform-origin: left;\n  animation: strike-line-draw 0.5s 0.4s ease-out forwards;\n}\n\n@keyframes strike-line-draw {\n  to { transform: rotate(-8deg) scaleX(1); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .strike-line::after {\n    animation: none;\n    transform: rotate(-8deg);\n  }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "reduced-motion support"
  ],
  "customProperties": []
}
