{
  "id": "bell-ring",
  "name": "Ringing Bell",
  "category": "effects",
  "tags": [
    "bell",
    "notification",
    "ring",
    "shake",
    "icon",
    "alert"
  ],
  "description": "A notification bell that swings now and then to draw the eye, with an unread count badge.",
  "url": "https://copy-css.com/snippets/bell-ring",
  "markdown": "https://copy-css.com/snippets/bell-ring.md",
  "html": "<button class=\"ringing-bell\" aria-label=\"Notifications, 3 unread\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n    <path d=\"M12 3a6 6 0 0 0-6 6v4l-2 3h16l-2-3V9a6 6 0 0 0-6-6Z\"/>\n    <path d=\"M10 19a2 2 0 0 0 4 0\"/>\n  </svg>\n  <span>3</span>\n</button>",
  "css": ".ringing-bell {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 52px;\n  height: 52px;\n  border: 0;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3);\n  cursor: pointer;\n}\n\n.ringing-bell svg {\n  width: 26px;\n  height: 26px;\n  fill: none;\n  stroke: #0f172a;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transform-origin: 50% 10%;\n  animation: ringing-bell-swing 2.4s ease-in-out infinite;\n}\n\n.ringing-bell span {\n  position: absolute;\n  top: 6px;\n  right: 6px;\n  box-sizing: border-box;\n  min-width: 18px;\n  height: 18px;\n  padding: 0 5px;\n  border-radius: 999px;\n  background: #ef4444;\n  box-shadow: 0 0 0 2px #fff;\n  color: #fff;\n  font: 700 11px/18px system-ui, sans-serif;\n}\n\n.ringing-bell:focus-visible {\n  outline: 2px solid #6366f1;\n  outline-offset: 2px;\n}\n\n@keyframes ringing-bell-swing {\n  0%, 35%, 100% { transform: rotate(0); }\n  5% { transform: rotate(18deg); }\n  10% { transform: rotate(-16deg); }\n  15% { transform: rotate(12deg); }\n  20% { transform: rotate(-8deg); }\n  25% { transform: rotate(4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ringing-bell svg { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "box shadows",
    "CSS Grid",
    "keyboard focus styles",
    "reduced-motion support"
  ],
  "customProperties": []
}
