{
  "id": "loading-dots-button",
  "name": "Loading Dots Button",
  "category": "buttons",
  "tags": [
    "three dots",
    "pending",
    "aria-busy",
    "submit",
    "sending"
  ],
  "description": "A pill button that shows three bouncing dots after its label while a request is pending.",
  "url": "https://copy-css.com/snippets/loading-dots-button",
  "markdown": "https://copy-css.com/snippets/loading-dots-button.md",
  "html": "<button class=\"btn-dots\" aria-busy=\"true\">\n  Sending\n  <span class=\"btn-dots-anim\" aria-hidden=\"true\"><span></span><span></span><span></span></span>\n</button>",
  "css": ".btn-dots {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 999px;\n  background: #18181b;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-dots-anim {\n  display: none;\n  gap: 4px;\n}\n\n.btn-dots[aria-busy=\"true\"] {\n  cursor: progress;\n}\n\n.btn-dots[aria-busy=\"true\"] .btn-dots-anim {\n  display: inline-flex;\n}\n\n.btn-dots-anim span {\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: currentColor;\n  animation: btn-dots-bounce 1s ease-in-out infinite;\n}\n\n.btn-dots-anim span:nth-child(2) {\n  animation-delay: 0.15s;\n}\n\n.btn-dots-anim span:nth-child(3) {\n  animation-delay: 0.3s;\n}\n\n.btn-dots:focus-visible {\n  outline: 3px solid #18181b;\n  outline-offset: 3px;\n}\n\n@keyframes btn-dots-bounce {\n  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }\n  30% { transform: translateY(-5px); opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-dots-anim span { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "Flexbox",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
