Skip to content

Production-ready animations, transitions, backgrounds, and scenes for Remotion

4.4 KB
Raw Blame
---
title: Strobe Montage
description: "A fast strobe of photo frames flickers between two scenes and lands on a prompt box"
component: strobe-montage
vibe: playful
length: 28
useWhen:
  - "A high-energy cut from an opening claim to the product prompt, with a burst of imagery in between."
  - "A launch video that needs a montage beat without building a separate image sequence scene."
  - "Showing the range of what the product makes, flashed in under a second, before the call to act."
avoidWhen:
  - "The cut should be quiet and slow — use `hairline-open`."
  - "You have no images to flash and want a plain light-based swap — use `flash-sweep`."
  - "You need accessibility-safe motion without flicker — use `zoom-blur`."
askedAs:
  - "rapid flicker of photos into prompt box"
  - "flashing images between claim and product"
  - "I want a fast strobe of pictures then landing on a prompt input"
  - "high energy cut from opening claim to the product box"
  - "burst of imagery before showing the AI prompt"
  - "photo frames flicker quickly and settle on the prompt screen"
---

<ComponentPreview name="strobe-montage" />

<InstallBlock name="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={128}
    fps={30}
    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.

<PropsTable title="Props"
  rows={[
    {
      name: "theme",
      type: "\"dark\" | \"light\"",
      default: "\"dark\"",
      description: "Light or dark palette for both scenes",
    },
    {
      name: "accent",
      type: "string",
      description: "Accent color; defaults to the theme accent",
    },
    {
      name: "lead",
      type: "string",
      default: "\"Six weekends\"",
      description: "Lead phrase of the scene A opener",
    },
    {
      name: "accentWord",
      type: "string",
      default: "\"of making.\"",
      description: "Accent phrase that follows the lead",
    },
    {
      name: "heading",
      type: "[string, string]",
      default: "[\"What will you\", \"launch next\"]",
      description: "Two-part heading above the scene B prompt",
    },
    {
      name: "accentMark",
      type: "string",
      default: "\"?\"",
      description: "Punctuation mark set in the accent color after the heading",
    },
    {
      name: "prompt",
      type: "string",
      default: "\"A 30-second film for our 2.0 release\"",
      description: "Request typed into the scene B prompt box",
    },
    {
      name: "file",
      type: "string",
      default: "\"launch-notes.md\"",
      description: "File name shown on the attachment chip",
    },
    {
      name: "ground",
      type: "GshPresetId",
      description: "Preset id for the scene A gradients.sh shader ground",
    },
    {
      name: "groundParams",
      type: "Partial<GradientParams>",
      description: "Overrides for the scene A shader parameters",
    },
    {
      name: "groundB",
      type: "GshPresetId",
      description: "Preset id for the scene B gradients.sh shader ground",
    },
    {
      name: "groundBParams",
      type: "Partial<GradientParams>",
      description: "Overrides for the scene B shader parameters",
    },
    {
      name: "transitionFrames",
      type: "number",
      default: "STROBE_MONTAGE_TIMING.transition",
      description: "Transition length in frames",
    },
    {
      name: "montage",
      type: "StrobeMontageProps",
      description: "Strobe options: images, framesPerHit, growFrom, growHits, punch, focus",
    },
  ]}
/>