Strobe Montage

A fast strobe of photo frames flickers between two scenes and lands on a prompt box. A free, MIT-licensed Remotion transition.

Installation
$ pnpm dlx shadcn@latest add @remocn/strobe-montage

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { StrobeMontage } from "@/components/remocn/strobe-montage";
 
const StrobeMontageScene = () => (
  <StrobeMontage
    lead="Six weekends"
    accentWord="of making."
    prompt="A 30-second film for our 2.0 release"
    images={["/shots/a.jpg", "/shots/b.jpg", "/shots/c.jpg"]}
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="StrobeMontage"
    component={StrobeMontageScene}
    durationInFrames={256}
    fps={60}
    width={1280}
    height={720}
  />
);

Scene A is an opener with a lead phrase and an accent word. A strobe of images flashes frame by frame, growing in size and punching in, then lands on scene B, a prompt box with a heading, a file chip and a typed request. Pass lead, accentWord, heading and prompt for the copy, and your own images through the montage options (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.

Props23

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

Light or dark palette for both scenes

accent
string—

Accent color; defaults to the theme accent

ink
string—

Text color of both scenes; overrides the theme ink.

background
string—

Solid fill in place of both gradient grounds; pass "transparent" to drop it.

fontFamily
string"Hanken Grotesk"

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

logo
React.ReactNode—

Replaces the remocn mark above the opener.

scale
number1

Size of both scenes' copy and prompt box around the frame's center; the grounds stay put.

lead
string"Six weekends"

Lead phrase of the scene A opener

accentWord
string"of making."

Accent phrase that follows the lead

heading
[string, string]["What will you", "launch next"]

Two-part heading above the scene B prompt

accentMark
string"?"

Punctuation mark set in the accent color after the heading

prompt
string"A 30-second film for our 2.0 release"

Request typed into the scene B prompt box

placeholder
string"Describe your launch film"

Prompt box text before typing starts

file
string"launch-notes.md"

File name shown on the attachment chip

fileMeta
string"Release notes · 2.4 KB"

Size and type line under the file name on the attachment chip

ground
GshPresetId—

Preset id for the scene A gradients.sh shader ground

groundParams
Partial<GradientParams>—

Overrides for the scene A shader parameters

groundB
GshPresetId—

Preset id for the scene B gradients.sh shader ground

groundBParams
Partial<GradientParams>—

Overrides for the scene B shader parameters

transitionFrames
numberSTROBE_MONTAGE_TIMING.transition

Transition length in frames

delay
number0

Frames to hold the first frame before anything moves.

speed
number1

Playback speed multiplier for the whole timeline.

montage
StrobeMontageProps—

Strobe options: images, framesPerHit, growFrom, growHits, punch, focus

  • theme"dark" | "light"

    Light or dark palette for both scenes

    Default"dark"

  • accentstring

    Accent color; defaults to the theme accent

  • inkstring

    Text color of both scenes; overrides the theme ink.

  • backgroundstring

    Solid fill in place of both gradient grounds; pass "transparent" to drop it.

  • fontFamilystring

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

    Default"Hanken Grotesk"

  • logoReact.ReactNode

    Replaces the remocn mark above the opener.

  • scalenumber

    Size of both scenes' copy and prompt box around the frame's center; the grounds stay put.

    Default1

  • leadstring

    Lead phrase of the scene A opener

    Default"Six weekends"

  • accentWordstring

    Accent phrase that follows the lead

    Default"of making."

  • heading[string, string]

    Two-part heading above the scene B prompt

    Default["What will you", "launch next"]

  • accentMarkstring

    Punctuation mark set in the accent color after the heading

    Default"?"

  • promptstring

    Request typed into the scene B prompt box

    Default"A 30-second film for our 2.0 release"

  • placeholderstring

    Prompt box text before typing starts

    Default"Describe your launch film"

  • filestring

    File name shown on the attachment chip

    Default"launch-notes.md"

  • fileMetastring

    Size and type line under the file name on the attachment chip

    Default"Release notes · 2.4 KB"

  • groundGshPresetId

    Preset id for the scene A gradients.sh shader ground

  • groundParamsPartial<GradientParams>

    Overrides for the scene A shader parameters

  • groundBGshPresetId

    Preset id for the scene B gradients.sh shader ground

  • groundBParamsPartial<GradientParams>

    Overrides for the scene B shader parameters

  • transitionFramesnumber

    Transition length in frames

    DefaultSTROBE_MONTAGE_TIMING.transition

  • delaynumber

    Frames to hold the first frame before anything moves.

    Default0

  • speednumber

    Playback speed multiplier for the whole timeline.

    Default1

  • montageStrobeMontageProps

    Strobe options: images, framesPerHit, growFrom, growHits, punch, focus