pacekit

Infinite Scroller

Cards

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>
  );
}

Dependencies

More by pacekit

View all
  • AI Response Writer

    AI Response Writer

    364
  • Mouse Wave Text

    Mouse Wave Text

    23
  • Bouncing Text

    Bouncing Text

    23
  • Gradient Shadow

    Gradient Shadow

    16
  • Scramble Text

    Scramble Text

    15
  • AI Suggestions

    AI Suggestions

    9
  • Squash Text

    Squash Text

    8
  • AI Model Selector

    AI Model Selector

    3

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Stats cards with links

    Stats cards with links

    103
  • Admin Dashboard Cards

    Admin Dashboard Cards

    32
  • Card

    Card

    2
  • Statistics Card 7

    Statistics Card 7

    341
  • Astryx Clickable Card

    Astryx Clickable Card

    2
  • Photo Deck

    Photo Deck

    73
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    766