{
  "id": "animated-gradient-button",
  "name": "Animated Gradient Button",
  "category": "buttons",
  "tags": [
    "moving",
    "background-position",
    "colorful",
    "cta",
    "hover"
  ],
  "description": "A pill button whose multi-color gradient drifts slowly and speeds up when you hover it.",
  "url": "https://copy-css.com/snippets/animated-gradient-button",
  "markdown": "https://copy-css.com/snippets/animated-gradient-button.md",
  "html": "<button class=\"btn-shift\">Start creating</button>",
  "css": ".btn-shift {\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #c2410c, #db2777, #7c3aed, #c2410c);\n  background-size: 300% 100%;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  animation: btn-shift-move 8s linear infinite;\n}\n\n.btn-shift:hover {\n  animation-duration: 2.5s;\n}\n\n.btn-shift:focus-visible {\n  outline: 3px solid #7c3aed;\n  outline-offset: 3px;\n}\n\n@keyframes btn-shift-move {\n  to { background-position: 300% 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-shift { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "linear gradients",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
