About
An animated SVG illustration of a pitched baseball with a mathematically accurate rotating seam and spin-based flight curve, for showing physics-driven pitch types like curveballs and sliders.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Robot Baseball to your project and fits it to your theme.
Code
How Robot Baseball is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import RobotBaseball from "@/components/ui/robot-baseball";
export default function RobotBaseballInteractiveDemo() {
const [along, setAlong] = React.useState(0.6);
return (
<div className="flex min-h-[420px] w-full items-center justify-center bg-background p-10">
{/* Walk it down the flight yourself, which stops the loop. */}
<RobotBaseball along={along} onAlongChange={setAlong} interactive />
</div>
);
}








