{
  "id": "bouncing-ball-loader",
  "name": "Bouncing Ball Loader",
  "category": "loaders",
  "tags": [
    "bounce",
    "squash",
    "shadow",
    "physics",
    "playful"
  ],
  "description": "A ball that bounces with a squash on landing and a shadow that grows as it falls.",
  "url": "https://copy-css.com/snippets/bouncing-ball-loader",
  "markdown": "https://copy-css.com/snippets/bouncing-ball-loader.md",
  "html": "<div class=\"loader-ball\" role=\"status\" aria-label=\"Loading\"></div>",
  "css": ".loader-ball {\n  position: relative;\n  width: 40px;\n  height: 84px;\n}\n\n.loader-ball::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 8px;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #ea580c;\n  transform-origin: 50% 100%;\n  animation: loader-ball-bounce 0.5s cubic-bezier(0.5, 0, 1, 0.5) infinite alternate;\n}\n\n.loader-ball::after {\n  content: \"\";\n  position: absolute;\n  bottom: 0;\n  left: 6px;\n  width: 28px;\n  height: 6px;\n  border-radius: 50%;\n  background: #7c2d1240;\n  animation: loader-ball-shadow 0.5s cubic-bezier(0.5, 0, 1, 0.5) infinite alternate;\n}\n\n@keyframes loader-ball-bounce {\n  0% { transform: translateY(0); }\n  85% { transform: translateY(54px) scale(1, 1); }\n  100% { transform: translateY(54px) scale(1.2, 0.8); }\n}\n\n@keyframes loader-ball-shadow {\n  from { transform: scale(0.5); opacity: 0.4; }\n  to { transform: scale(1); opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-ball::before,\n  .loader-ball::after { animation-duration: 1.2s; }\n}",
  "features": [
    "keyframe animations",
    "transforms",
    "reduced-motion support"
  ],
  "customProperties": []
}
