Beam Sweep

A beam of light sweeps across a page builder and reveals a closing headline over a glowing horizon. A free, MIT-licensed Remotion transition.

Installation
$ pnpm dlx shadcn@latest add @remocn/beam-sweep

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { BeamSweepDemo } from "@/components/remocn/beam-sweep";
 
const BeamSweepDemoScene = () => (
  <BeamSweepDemo
    line="Just describe the launch."
    sub="Every scene is cut to your product."
    images={["/shots/one.png", "/shots/two.png", "/shots/three.png"]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="BeamSweepDemo"
    component={BeamSweepDemoScene}
    durationInFrames={216}
    fps={60}
    width={1280}
    height={720}
  />
);

Scene A is a page builder with a progress bar and three images on a page. A diagonal beam of shader light sweeps across, burns the builder away, and reveals scene B, a statement with a supporting line over a glowing ground. Pass pageTitle, line and sub for the copy and your own images (the defaults exist only in the Remocn repo); it ships light and dark.

The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.

Props20

PropTypeDefault
theme
"dark" | "light""dark"

Light or dark palette for both scenes

images
string[]—

Up to three image srcs shown on the scene A page; defaults are remocn-only

pageTitle
[string, string]—

Two-part title on the scene A page; the second part is italic

line
string"Just describe the launch."

Main statement in scene B

sub
string"Every scene is cut to your product."

Supporting line under the statement

brand
string"Lumen"

Product name in the scene A app bar and on its page.

prompt
string"Make the hero calmer and add the product shots."

Request shown in the scene A chat bubble.

publishLabel
string"Publish"

Label of the scene A button before it is pressed.

fontFamily
string"Hanken Grotesk"

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

ink
string—

Text color; overrides the theme ink.

beam
BeamSweepProps—

Overrides for beam preset, angle, burn color, edge and light mode

ground
GshPresetId—

Preset id for the scene B gradients.sh shader ground

groundParams
Partial<GradientParams>—

Overrides for the scene B shader parameters

background
string—

Solid fill in place of the gradient ground; pass "transparent" to drop it.

sceneA
numberBEAM_SWEEP_DEMO.sceneA

Scene A length in frames

sceneB
numberBEAM_SWEEP_DEMO.sceneB

Scene B length in frames

transition
numberBEAM_SWEEP_DEMO.transition

Transition length in frames

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 speed multiplier for the whole timeline.

  • theme"dark" | "light"

    Light or dark palette for both scenes

    Default"dark"

  • imagesstring[]

    Up to three image srcs shown on the scene A page; defaults are remocn-only

  • pageTitle[string, string]

    Two-part title on the scene A page; the second part is italic

  • linestring

    Main statement in scene B

    Default"Just describe the launch."

  • substring

    Supporting line under the statement

    Default"Every scene is cut to your product."

  • brandstring

    Product name in the scene A app bar and on its page.

    Default"Lumen"

  • promptstring

    Request shown in the scene A chat bubble.

    Default"Make the hero calmer and add the product shots."

  • publishLabelstring

    Label of the scene A button before it is pressed.

    Default"Publish"

  • fontFamilystring

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

    Default"Hanken Grotesk"

  • inkstring

    Text color; overrides the theme ink.

  • beamBeamSweepProps

    Overrides for beam preset, angle, burn color, edge and light mode

  • groundGshPresetId

    Preset id for the scene B gradients.sh shader ground

  • groundParamsPartial<GradientParams>

    Overrides for the scene B shader parameters

  • backgroundstring

    Solid fill in place of the gradient ground; pass "transparent" to drop it.

  • sceneAnumber

    Scene A length in frames

    DefaultBEAM_SWEEP_DEMO.sceneA

  • sceneBnumber

    Scene B length in frames

    DefaultBEAM_SWEEP_DEMO.sceneB

  • transitionnumber

    Transition length in frames

    DefaultBEAM_SWEEP_DEMO.transition

  • 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 speed multiplier for the whole timeline.

    Default1