{
  "id": "download-button",
  "name": "Download Button",
  "category": "buttons",
  "tags": [
    "file",
    "arrow",
    "file size",
    "bounce",
    "cta"
  ],
  "description": "A download button with an icon badge, file type and size, and an arrow that bounces on hover.",
  "url": "https://copy-css.com/snippets/download-button",
  "markdown": "https://copy-css.com/snippets/download-button.md",
  "html": "<button class=\"btn-download\" type=\"button\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n    <g class=\"btn-download-arrow\"><path d=\"M12 4v10\"/><path d=\"m8 10 4 4 4-4\"/></g>\n    <path d=\"M5 19h14\"/>\n  </svg>\n  <span>Download <small>PDF · 2.4 MB</small></span>\n</button>",
  "css": ".btn-download {\n  display: inline-flex;\n  align-items: center;\n  gap: 12px;\n  padding: 8px 22px 8px 8px;\n  border: 0;\n  border-radius: 14px;\n  background: #047857;\n  color: #fff;\n  font: 600 16px/1.2 system-ui, sans-serif;\n  text-align: left;\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n}\n\n.btn-download svg {\n  flex: none;\n  width: 40px;\n  height: 40px;\n  padding: 9px;\n  border-radius: 10px;\n  background: #065f46;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  box-sizing: border-box;\n}\n\n.btn-download small {\n  display: block;\n  font-size: 12px;\n  font-weight: 500;\n  color: #d1fae5;\n}\n\n.btn-download:hover {\n  background: #065f46;\n}\n\n.btn-download:hover .btn-download-arrow {\n  animation: btn-download-bounce 0.8s ease-in-out infinite;\n}\n\n.btn-download:focus-visible {\n  outline: 3px solid #047857;\n  outline-offset: 3px;\n}\n\n@keyframes btn-download-bounce {\n  50% { transform: translateY(3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-download:hover .btn-download-arrow { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transitions",
    "transforms",
    "Flexbox",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
