{
  "id": "notification-badge",
  "name": "Notification Badge",
  "category": "effects",
  "tags": [
    "badge",
    "bell",
    "notification",
    "count",
    "icon"
  ],
  "description": "A bell icon button with an unread-count badge that rings on hover.",
  "url": "https://copy-css.com/snippets/notification-badge",
  "markdown": "https://copy-css.com/snippets/notification-badge.md",
  "html": "<button class=\"notify-bell\" aria-label=\"3 notifications\">\n  <svg viewBox=\"0 0 24 24\"><path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/></svg>\n  <span class=\"notify-bell-count\">3</span>\n</button>",
  "css": ".notify-bell {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border: 1px solid #e5e7eb;\n  border-radius: 14px;\n  background: #fff;\n  cursor: pointer;\n}\n\n.notify-bell svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: #111;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transform-origin: top center;\n}\n\n.notify-bell:hover svg {\n  animation: notify-bell-ring 0.6s ease;\n}\n\n.notify-bell-count {\n  position: absolute;\n  top: -6px;\n  right: -6px;\n  box-sizing: border-box;\n  min-width: 20px;\n  height: 20px;\n  padding: 0 5px;\n  border: 2px solid #fff;\n  border-radius: 999px;\n  background: #ef4444;\n  color: #fff;\n  font: 700 11px/16px system-ui, sans-serif;\n  text-align: center;\n}\n\n@keyframes notify-bell-ring {\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  .notify-bell:hover svg {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "CSS Grid",
    "reduced-motion support"
  ],
  "customProperties": []
}
