{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "loader-jumping-dots",
  "type": "registry:component",
  "title": "Loader Jumping Dots",
  "description": "Three dots hop in turn, squashing when they land and stretching in the air, with a shadow on the ground that shrinks as they rise.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "loaders",
    "loader",
    "dots",
    "bounce",
    "squash",
    "spinner",
    "css"
  ],
  "docs": "https://hyperblur.dev/effects/loader-jumping-dots",
  "files": [
    {
      "path": "registry/hyperblur/loader-jumping-dots.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/loader-jumping-dots.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface LoaderJumpingDotsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> {\n  size?: number;\n  height?: number;\n  color?: string;\n  speed?: number;\n  label?: string;\n}\n\nconst css = `\n@keyframes hb-zz8-jump {\n  0% { transform: translateY(0) scale(1.32, 0.68); animation-timing-function: cubic-bezier(0.3, 0.9, 0.5, 1); }\n  9% { transform: translateY(calc(var(--hb-zz8-h) * -0.16)) scale(0.88, 1.17); animation-timing-function: cubic-bezier(0.15, 0.75, 0.35, 1); }\n  50% { transform: translateY(calc(var(--hb-zz8-h) * -1)) scale(1, 1); animation-timing-function: cubic-bezier(0.65, 0, 0.9, 0.45); }\n  91% { transform: translateY(calc(var(--hb-zz8-h) * -0.08)) scale(0.9, 1.18); animation-timing-function: ease-in; }\n  100% { transform: translateY(0) scale(1.32, 0.68); }\n}\n@keyframes hb-zz8-ground {\n  0% { transform: scaleX(1.3); opacity: 0.6; animation-timing-function: cubic-bezier(0.15, 0.75, 0.35, 1); }\n  50% { transform: scaleX(0.42); opacity: 0.14; animation-timing-function: cubic-bezier(0.65, 0, 0.9, 0.45); }\n  100% { transform: scaleX(1.3); opacity: 0.6; }\n}\n.hb-zz8 {\n  box-sizing: border-box;\n  display: inline-flex;\n  align-items: flex-end;\n  gap: calc(var(--hb-zz8-s) * 0.9);\n  height: calc(var(--hb-zz8-h) + var(--hb-zz8-s) * 1.4);\n  font-family: inherit;\n}\n.hb-zz8 *, .hb-zz8 *::before, .hb-zz8 *::after { box-sizing: border-box; }\n.hb-zz8-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  margin: -1px;\n  padding: 0;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border: 0;\n}\n.hb-zz8-d {\n  position: relative;\n  flex: none;\n  width: var(--hb-zz8-s);\n  height: 100%;\n}\n.hb-zz8-b {\n  position: absolute;\n  left: 0;\n  bottom: calc(var(--hb-zz8-s) * 0.3);\n  width: var(--hb-zz8-s);\n  height: var(--hb-zz8-s);\n  border-radius: 50%;\n  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--hb-zz8-c) 45%, #ffffff), var(--hb-zz8-c) 62%);\n  transform-origin: 50% 100%;\n  animation: hb-zz8-jump var(--hb-zz8-t) infinite backwards;\n  animation-delay: calc(var(--hb-zz8-i) * var(--hb-zz8-t) * 0.15);\n}\n.hb-zz8-g {\n  position: absolute;\n  left: 0;\n  bottom: 0;\n  width: var(--hb-zz8-s);\n  height: calc(var(--hb-zz8-s) * 0.26);\n  border-radius: 50%;\n  background: color-mix(in srgb, var(--hb-zz8-c) 55%, transparent);\n  filter: blur(1.5px);\n  animation: hb-zz8-ground var(--hb-zz8-t) infinite backwards;\n  animation-delay: calc(var(--hb-zz8-i) * var(--hb-zz8-t) * 0.15);\n}\n@media (prefers-reduced-motion: reduce) {\n  .hb-zz8-b, .hb-zz8-g { animation: none; }\n}\n`;\n\nexport function LoaderJumpingDots({\n  size = 16,\n  height = 30,\n  color = \"#2f7bff\",\n  speed = 0.9,\n  label = \"Loading\",\n  className = \"\",\n  style,\n  ...rest\n}: LoaderJumpingDotsProps) {\n  const vars = {\n    [\"--hb-zz8-s\" as string]: `${size}px`,\n    [\"--hb-zz8-h\" as string]: `${height}px`,\n    [\"--hb-zz8-c\" as string]: color,\n    [\"--hb-zz8-t\" as string]: `${Math.max(0.3, speed).toFixed(2)}s`,\n    ...style,\n  } as React.CSSProperties;\n\n  return (\n    <div role=\"status\" {...rest} className={`hb-zz8${className ? ` ${className}` : \"\"}`} style={vars}>\n      <style href=\"hb-loader-jumping-dots\" precedence=\"default\">{css}</style>\n      <span className=\"hb-zz8-sr\">{label}</span>\n      {[0, 1, 2].map((i) => (\n        <span key={i} className=\"hb-zz8-d\" aria-hidden=\"true\" style={{ [\"--hb-zz8-i\" as string]: i } as React.CSSProperties}>\n          <span className=\"hb-zz8-g\" />\n          <span className=\"hb-zz8-b\" />\n        </span>\n      ))}\n    </div>\n  );\n}\n"
    }
  ]
}