Rewrite Bars

Bars sweep over a headline to rewrite it, 'Your launch video, rendered from code.'. A free, MIT-licensed Remotion text animation.

Installation
$ pnpm dlx shadcn@latest add @remocn/rewrite-bars

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { RewriteBars } from "@/components/remocn/rewrite-bars";
 
const RewriteBarsScene = () => (
  <RewriteBars headlines={["Scenes you copy.", "Captions that follow the voice.", "Rendered from code."]} highlight="rendered from code" />
);
 
export const RemotionRoot = () => (
  <Composition
    id="RewriteBars"
    component={RewriteBarsScene}
    durationInFrames={380}
    fps={60}
    width={1280}
    height={720}
  />
);

Bars sweep over the current headline, collapse, and reflow it into the next one, with a small eyebrow label above each. Pass headlines, eyebrows and the highlight phrase; it ships light and dark.

Props15

PropTypeDefault
headlines
string[]—

Headlines in order; bars rewrite each into the next.

eyebrows
string[]—

Small label above each headline.

highlight
string"rendered from code"

Phrase tinted with the accent colour.

align
"center" | "left""center"

Text alignment of the headline block.

hold
number20

Frames the text holds before the next beat.

stagger
number3

Frames between lines as the bars sweep a headline in and out.

fontWeight
number500

Weight of the headlines.

accent
string"#3B5BFD"

Accent colour (any CSS colour).

ink
string—

Text color; overrides the theme ink.

background
string—

Overrides the theme background colour.

fontFamily
string"Figtree"

Typeface for the copy. Load the font in your project first.

scale
number1

Size of the foreground around the frame's center; the background stays put.

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback multiplier; above 1 plays faster.

theme
"dark" | "light""dark"

Colour scheme; ships light and dark.

  • headlinesstring[]

    Headlines in order; bars rewrite each into the next.

  • eyebrowsstring[]

    Small label above each headline.

  • highlightstring

    Phrase tinted with the accent colour.

    Default"rendered from code"

  • align"center" | "left"

    Text alignment of the headline block.

    Default"center"

  • holdnumber

    Frames the text holds before the next beat.

    Default20

  • staggernumber

    Frames between lines as the bars sweep a headline in and out.

    Default3

  • fontWeightnumber

    Weight of the headlines.

    Default500

  • accentstring

    Accent colour (any CSS colour).

    Default"#3B5BFD"

  • inkstring

    Text color; overrides the theme ink.

  • backgroundstring

    Overrides the theme background colour.

  • fontFamilystring

    Typeface for the copy. Load the font in your project first.

    Default"Figtree"

  • scalenumber

    Size of the foreground around the frame's center; the background stays put.

    Default1

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback multiplier; above 1 plays faster.

    Default1

  • theme"dark" | "light"

    Colour scheme; ships light and dark.

    Default"dark"