Color Bars

Slanted fluted color bars whip across the frame and swap the outgoing shot for the incoming one. A free, MIT-licensed Remotion transition.

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

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { ColorBars } from "@/components/remocn/color-bars";
 
const ColorBarsScene = () => (
  <ColorBars
    images={["/shots/before.png", "/shots/after.png"]}
    direction="right"
    bars={5}
    accent="#3B5BFD"
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="ColorBars"
    component={ColorBarsScene}
    durationInFrames={172}
    fps={60}
    width={1280}
    height={720}
  />
);

Two to six slanted bars, tinted from accent, whip across the frame in a stagger. The outgoing shot is shoved along while the incoming shot arrives late and settles. Pass the two shots as scenes (React nodes) or images, set the travel with direction and angle, and without either it plays a built-in pair of scenes. It ships light and dark; the bars finish and the scene settles by frame 69 with 5 bars.

Props18

PropTypeDefault
scenes
React.ReactNode[]—

Outgoing and incoming shots as React nodes

images
string[]—

Outgoing and incoming screenshots, used when scenes is not passed

eyebrow
string"Introducing"

Small line above the logo in the built-in title shot.

tagline
string"Motion for the films you launch with."

Line under the logo in the built-in title shot.

logo
React.ReactNode—

Replaces the remocn mark.

fontFamily
string"Bricolage Grotesque"

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

ink
string—

Text color; overrides the theme ink.

direction
"right" | "left" | "up" | "down""right"

Which way the bars travel

angle
number16

Slant of the bar edges in degrees; 0 is a straight wipe

bars
number5

Number of bars, clamped between 4 and 6

stagger
number3

Frames between one bar and the next.

colors
string[]—

Override the derived bar colors, leading bar first

accent
string"#3B5BFD"

Base color the bar colors are derived from

speed
number1

Playback multiplier for the whole timeline

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.

grain
booleantrue

Film grain over the scene.

theme
"dark" | "light""dark"

Light or dark built-in scenes and bar colors

  • scenesReact.ReactNode[]

    Outgoing and incoming shots as React nodes

  • imagesstring[]

    Outgoing and incoming screenshots, used when scenes is not passed

  • eyebrowstring

    Small line above the logo in the built-in title shot.

    Default"Introducing"

  • taglinestring

    Line under the logo in the built-in title shot.

    Default"Motion for the films you launch with."

  • logoReact.ReactNode

    Replaces the remocn mark.

  • fontFamilystring

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

    Default"Bricolage Grotesque"

  • inkstring

    Text color; overrides the theme ink.

  • direction"right" | "left" | "up" | "down"

    Which way the bars travel

    Default"right"

  • anglenumber

    Slant of the bar edges in degrees; 0 is a straight wipe

    Default16

  • barsnumber

    Number of bars, clamped between 4 and 6

    Default5

  • staggernumber

    Frames between one bar and the next.

    Default3

  • colorsstring[]

    Override the derived bar colors, leading bar first

  • accentstring

    Base color the bar colors are derived from

    Default"#3B5BFD"

  • speednumber

    Playback multiplier for the whole timeline

    Default1

  • 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

  • grainboolean

    Film grain over the scene.

    Defaulttrue

  • theme"dark" | "light"

    Light or dark built-in scenes and bar colors

    Default"dark"