{
  "id": "wiggle-on-hover",
  "name": "Wiggle on Hover",
  "category": "effects",
  "tags": [
    "wiggle",
    "shake",
    "hover",
    "icon",
    "attention",
    "keyframes"
  ],
  "description": "A playful wiggle you can add to any icon or badge with one class, triggered on hover and keyboard focus.",
  "url": "https://copy-css.com/snippets/wiggle-on-hover",
  "markdown": "https://copy-css.com/snippets/wiggle-on-hover.md",
  "html": "<a class=\"wiggle-link\" href=\"#\">\n  <svg class=\"wiggle\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"8\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M12 8v13M3 12h18M12 8S10 3 7.5 4 8 8 12 8m0 0s2-5 4.5-4S16 8 12 8\"/></svg>\n  Claim your gift\n</a>",
  "css": ".wiggle-link {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 12px 18px;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 4px 14px -6px rgba(190, 24, 93, 0.35);\n  color: #9d174d;\n  font: 700 15px system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.wiggle-link svg {\n  width: 26px;\n  height: 26px;\n  fill: #fce7f3;\n  stroke: #db2777;\n  stroke-width: 1.8;\n  stroke-linejoin: round;\n}\n\n.wiggle-link:hover .wiggle,\n.wiggle-link:focus-visible .wiggle {\n  animation: wiggle-shake 0.6s ease-in-out;\n}\n\n.wiggle-link:focus-visible {\n  outline: 2px solid #db2777;\n  outline-offset: 3px;\n}\n\n@keyframes wiggle-shake {\n  0%, 100% { transform: rotate(0); }\n  20% { transform: rotate(-14deg); }\n  40% { transform: rotate(12deg); }\n  60% { transform: rotate(-8deg); }\n  80% { transform: rotate(4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .wiggle-link:hover .wiggle,\n  .wiggle-link:focus-visible .wiggle {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "box shadows",
    "Flexbox",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
