{
  "id": "ripple-button",
  "name": "Ripple Button",
  "category": "buttons",
  "tags": [
    "ripple",
    "material",
    "click",
    "press",
    "feedback"
  ],
  "description": "A Material-style ripple that spreads from the center when you click. Pure CSS, no JavaScript.",
  "url": "https://copy-css.com/snippets/ripple-button",
  "markdown": "https://copy-css.com/snippets/ripple-button.md",
  "html": "<button class=\"btn-ripple\">Click me</button>",
  "css": ".btn-ripple {\n  --c: #7c3aed;\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 10px;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  background: var(--c) radial-gradient(circle, transparent 1%, var(--c) 1%) center / 15000%;\n  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.6);\n  cursor: pointer;\n  transition: background 0.8s;\n}\n\n.btn-ripple:hover {\n  --c: #6d28d9;\n}\n\n/* The ripple: shrink the gradient instantly, then let it grow back */\n.btn-ripple:active {\n  background-color: #c4b5fd;\n  background-size: 100%;\n  transition: background 0s;\n}\n\n.btn-ripple:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 3px;\n}",
  "features": [
    "transitions",
    "radial gradients",
    "box shadows",
    "keyboard focus styles",
    "custom properties"
  ],
  "customProperties": [
    {
      "name": "--c",
      "value": "#7c3aed"
    }
  ]
}
