About
A draggable, physics-driven marquee that loops a row or column of items endlessly, with momentum from flicks and speed that reacts to page scroll velocity.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Infinite Scroller to your project and fits it to your theme.
Code
How Infinite Scroller is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { InfiniteScroller } from "@/components/ui/motion-infinite-scroller";
const items = Array.from({ length: 10 }, (_, i) => i + 1);
export default function InfiniteScrollerDemo() {
return (
<div className="flex w-full items-center justify-center p-10">
<InfiniteScroller direction="left" speed={1} className="w-full max-w-3xl">
{items.map((n) => (
<div
key={n}
className="mx-2 flex h-32 w-40 shrink-0 items-center justify-center rounded-lg bg-muted text-lg font-medium text-muted-foreground"
>
{n}
</div>
))}
</InfiniteScroller>
</div>
);
}
















