Infinite Scroll

Continuous horizontal or vertical scrolling content with seamless looping.

scrollinfiniteloopmarquee

Installation

Terminalbash
npx motioncraft add infinite-scroll

Usage

infinite-scroll.tsxtsx
import { InfiniteScroll } from "@/components/scroll/infinite-scroll";

<InfiniteScroll direction="left" speed={1.5}>
  <span>Scrolling text</span>
</InfiniteScroll>

Props

PropTypeDefaultDescription
children*ReactNodeContent to scroll
direction'left' | 'right''left'Scroll direction
speednumber1Scroll speed

Related Components