Infinite Marquee

Looping text ticker for Remotion: a horizontal scrolling text band that repeats seamlessly, for ambient background motion, a divider strip or a news-ticker lower third.

In Remotion, Infinite Marquee is a seamlessly looping horizontal scrolling text ticker: one line of text repeats and slides sideways for as long as the clip runs. Use it as ambient background motion, a decorative band between sections or a ticker-style lower third.

Installation
$ pnpm dlx shadcn@latest add @remocn/infinite-marquee

How to build this in Remotion

You don't need @remotion/layout-utils or a font loader for this. Install the component and pass your text:

bash
npx shadcn@latest add @remocn/infinite-marquee

The offset is plain math on the frame: frame × pixelsPerFrame wrapped with a modulo over three copies of the text, so there is no spring() or interpolate() and nothing to schedule. It reads the frame through the remocn frame-rate helper, so the scroll covers the same distance per second at any frame rate.

Good to know

  • Length: 180 frames of motion at 30 fps (360 at 60 fps) with the default props. There is no end state: the ticker loops for the whole durationInFrames, so make the clip as long as you need. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion are doubled, see Frame rate.
  • Installs: remotion from npm, plus the remocn helpers frame-rate. The shadcn CLI copies the source into your project.
  • Font: the text uses Geist Sans through the --font-geist-sans CSS variable, with a system sans fallback. The font is set inline on each copy, so change it in the copied file; a className font does not override an inline style.
  • Direction: the band scrolls right to left. There is no direction prop.
  • Position: the band is centered vertically in the frame. To place it lower, or make it a strip of a given height, wrap it in your own positioned container.
  • The loop length is estimated from the character count (0.55 × fontSize per character), so a much wider or narrower font can show a jump at the wrap. Check it in the preview, or adjust that factor in the copied file.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { InfiniteMarquee } from "@/components/remocn/infinite-marquee";
 
const InfiniteMarqueeScene = () => (
  <InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />
);
 
export const RemotionRoot = () => (
  <Composition
    id="InfiniteMarquee"
    component={InfiniteMarqueeScene}
    durationInFrames={360}
    fps={60}
    width={1280}
    height={720}
  />
);

With Backdrop

Renders transparent — supply the background via Backdrop:

tsx
import { Backdrop } from "@/components/remocn/backdrop";
import { InfiniteMarquee } from "@/components/remocn/infinite-marquee";
 
<Backdrop fill={{ type: "color", value: "#fafafa" }}>
  <InfiniteMarquee text="ship · build · animate · " pixelsPerFrame={4} stroke />
</Backdrop>

Props9

PropTypeDefault
text
string"ship · build · animate · "

Text repeated across the marquee. Include trailing whitespace or punctuation for spacing.

fontSize
number120

Font size in pixels

color
string"#171717"

Text color when `stroke` is false

fontWeight
number900

CSS font-weight

pixelsPerFrame
number4

Horizontal scroll speed in pixels per frame

stroke
booleanfalse

Render outlined text via `-webkit-text-stroke` instead of filled

strokeColor
string"#171717"

Stroke color used when `stroke` is true

speed
number1

Playback speed multiplier

className
string—

Optional className passed to the translating row

  • textstring

    Text repeated across the marquee. Include trailing whitespace or punctuation for spacing.

    Default"ship · build · animate · "

  • fontSizenumber

    Font size in pixels

    Default120

  • colorstring

    Text color when `stroke` is false

    Default"#171717"

  • fontWeightnumber

    CSS font-weight

    Default900

  • pixelsPerFramenumber

    Horizontal scroll speed in pixels per frame

    Default4

  • strokeboolean

    Render outlined text via `-webkit-text-stroke` instead of filled

    Defaultfalse

  • strokeColorstring

    Stroke color used when `stroke` is true

    Default"#171717"

  • speednumber

    Playback speed multiplier

    Default1

  • classNamestring

    Optional className passed to the translating row

Common questions

How do I make a seamlessly looping scrolling text ticker in Remotion?

Install Infinite Marquee with npx shadcn@latest add @remocn/infinite-marquee and pass text (end it with a separator such as · ) plus pixelsPerFrame for the speed.

Can the text be outlined?

Yes. Set stroke for outlined text through -webkit-text-stroke, colored by strokeColor.