{
  "name": "ball-bounce-slide-default",
  "type": "registry:ui",
  "tier": "free",
  "dependencies": [
    "framer-motion"
  ],
  "registryDependencies": [
    "https://www.craftui.space/r/craftui-base.json"
  ],
  "files": [
    {
      "path": "components/craftui/loaders/ball-bounce-slide/default.tsx",
      "content": "'use client';\n\nimport { useEffect } from 'react';\nimport { motion, useAnimation } from 'motion/react';\n\ninterface BallBounceSlideProps {\n  width?: number;\n  height?: number;\n  color?: string;\n  lineColor?: string;\n  isAnimating?: boolean;\n  duration?: number;\n  ease?: any;\n  strokeWidth?: number;\n}\n\nexport function BallBounceSlide({\n  width = 90,\n  height = 45,\n  color = \"currentColor\",\n  lineColor = \"currentColor\",\n  isAnimating = true,\n  duration = 2.0,\n  ease = 'linear',\n  strokeWidth = 3,\n}: BallBounceSlideProps) {\n  const ballRadius = height * 0.15;\n  const ballCY = height - ballRadius - 1.5;\n\n  const controlsX = useAnimation();\n  const controlsY = useAnimation();\n\n  useEffect(() => {\n    if (isAnimating) {\n      controlsX.start({\n        x: [-width * 5, width * 5],\n        transition: { duration, repeat: Infinity, ease },\n      });\n      controlsY.start({\n        y: [0, -height * 0.15, 0],\n        transition: { duration: duration * 0.25, repeat: Infinity, times: [0, 0.08, 1], ease: [0.455, 0.03, 0.515, 0.955] },\n      });\n    } else {\n      controlsX.stop();\n      controlsX.set({ x: 0 });\n      controlsY.stop();\n      controlsY.set({ y: 0 });\n    }\n  }, [isAnimating, duration, ease, width, height, controlsX, controlsY]);\n\n  return (\n    <svg\n      width={width}\n      height={height}\n      viewBox={`0 0 ${width} ${height}`}\n      fill=\"none\"\n      xmlns=\"http://www.w3.org/2000/svg\"\n      aria-label=\"Loading\"\n      role=\"img\"\n      style={{ overflow: 'hidden' }}\n    >\n      <line\n        x1={0}\n        y1={height - 1.5}\n        x2={width}\n        y2={height - 1.5}\n        stroke={lineColor}\n        strokeWidth={strokeWidth}\n      />\n      {/* Outer motion element handles x translation */}\n      <motion.g animate={controlsX}>\n        {/* Inner motion element handles y (bounce) */}\n        <motion.circle\n          cx={width * 0.425}\n          cy={ballCY}\n          r={ballRadius}\n          fill={color}\n          animate={controlsY}\n        />\n      </motion.g>\n    </svg>\n  );\n}\n",
      "type": "registry:ui",
      "target": "~/components/craftui/loaders/ball-bounce-slide/default.tsx"
    }
  ],
  "meta": {
    "displayName": "Ball Bounce Slide - Ball Bounce Slide",
    "description": "A ball with extreme bounce easing slides horizontally across a ground line, creating a dynamic rolling/bouncing motion",
    "category": "loaders",
    "tags": [
      "bounce",
      "slide",
      "ball",
      "simple",
      "continuous",
      "linear",
      "horizontal"
    ],
    "animationType": "loop"
  }
}