Disc Pop

A grid of colored glyph discs pops across the screen and swaps an AI prompt screen for a video player: a TransitionSeries presentation you can also use between your own scenes. A free, MIT-licensed Remotion transition.

In Remotion, Disc Pop is a transition where a grid of colored discs, each carrying a glyph (play, spark, arrow, note…), pops across the screen, covers the frame and pops away onto the next scene. It ships as DiscPopDemo, a ready AI prompt screen that turns into a video player, and as discPop(), a TransitionSeries presentation you can put between any two of your own scenes.

Installation
$ pnpm dlx shadcn@latest add @remocn/disc-pop

How to make glyph discs pop across the screen between two scenes in Remotion

You don't need to write a custom TransitionPresentation or draw the discs with @remotion/shapes. Install the component:

bash
npx shadcn@latest add @remocn/disc-pop

To use it between your own scenes (not the built-in prompt and player), pass discPop() to a TransitionSeries.Transition:

tsx
import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { discPop } from "@/components/remocn/disc-pop";
 
// 60 fps composition: 30 frames of motion at 30 fps = 60 here.
export const PromptToVideo = () => (
  <TransitionSeries>
    <TransitionSeries.Sequence durationInFrames={168}>
      <MyPromptScene />
    </TransitionSeries.Sequence>
    <TransitionSeries.Transition
      timing={linearTiming({ durationInFrames: 60 })}
      presentation={discPop({ colors: ["#FF5A1F", "#2F6BFF"], glyphs: ["play", "spark"] })}
    />
    <TransitionSeries.Sequence durationInFrames={168}>
      <MyPlayerScene />
    </TransitionSeries.Sequence>
  </TransitionSeries>
);

discPop(props) takes the DiscPopProps object, the same one the demo's discs prop accepts. Every field is optional:

FieldDefaultWhat it does
colors["#FF5A1F", "#B7A6FF", "#2F6BFF", "#F2EDE4"]Disc fill colors
glyphColors["#9E2A06", "#5A44C4", "#0B2D8F", "#1A1814"]Glyph colors, paired with colors
glyphsall eightAny of "play", "spark", "plus", "arrow", "note", "cursor", "check", "wave"
cell0.46Grid cell size as a share of the frame's shorter side; smaller means more discs
seed"disc"Seed for the disc jitter, tilt and pop order
swap0.46Point in the transition (0–1) where the outgoing scene is swapped for the incoming one under the discs

Good to know

  • Length: 30 frames of motion at 30 fps (60 at 60 fps), the value for linearTiming. The DiscPopDemo example below is a 60 fps composition of both demo scenes, so its durationInFrames (276) covers 84 + 84 − 30 frames at 30 fps, doubled. Props counted in frames stay 30 fps frames, see Frame rate.
  • Installs: remotion, @remotion/transitions, @remotion/google-fonts from npm, plus the remocn helpers gsh, glide, frame-rate. gsh is the gradients.sh shader ground used only by the demo scenes; discPop() itself draws the discs with plain CSS and SVG glyphs. The shadcn CLI copies the source into your project.
  • Fonts: the demo loads Figtree, Geist Mono and Instrument Serif through @remotion/google-fonts. Pass fontFamily to use your own face.

Usage

tsx
// src/Root.tsx
import { Composition } from "remotion";
import { DiscPopDemo } from "@/components/remocn/disc-pop";
 
const DiscPopDemoScene = () => (
  <DiscPopDemo
    prompt="Make a launch film for our piano app: bold title, three product shots, calm ending."
    overline="LAUNCH FILM · 01"
    title="Keys, in an afternoon."
  />
);
 
export const RemotionRoot = () => (
  <Composition
    id="DiscPopDemo"
    component={DiscPopDemoScene}
    durationInFrames={276}
    fps={60}
    width={1280}
    height={720}
  />
);

Scene A is a prompt card with a greeting that types a request and presses send. A grid of colored discs, each carrying a glyph such as play, spark or arrow, pops across the frame and swaps the scene for scene B, a video player with an overline, a title and a progress bar. Pass greeting, prompt, overline and title, plus your own image; it ships light and dark.

Props23

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

Light or dark palette for both scenes

greeting
[string, string]["Hi there.", "What are you launching"]

Two-part greeting above the prompt in scene A

prompt
string"Make a launch film for our piano app: bold title, three product shots, calm ending."

Request typed into the scene A prompt card

fileName
string"brand-kit.zip"

Name of the file attached to the scene A prompt.

fileMeta
string"Logo, colours, 6 shots"

Detail line under the attached file name.

image
string—

Image src for the player; the default exists only in the Remocn repo

overline
string"LAUNCH FILM · 01"

Small caps label above the title in scene B

title
string"Keys, in an afternoon."

Title shown in the scene B player

exportLabel
string"Export"

Label of the export button above the scene B player.

fontFamily
string"Figtree"

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

ink
string—

Text color; overrides the theme ink.

discs
DiscPopProps—

Overrides for disc colors, glyphs, cell size, seed and swap point

groundA
GshPresetId—

Preset id for the scene A gradients.sh shader ground

groundAParams
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

background
string—

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

sceneA
numberDISC_POP_DEMO.sceneA

Scene A length in frames

sceneB
numberDISC_POP_DEMO.sceneB

Scene B length in frames

transition
numberDISC_POP_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"

  • greeting[string, string]

    Two-part greeting above the prompt in scene A

    Default["Hi there.", "What are you launching"]

  • promptstring

    Request typed into the scene A prompt card

    Default"Make a launch film for our piano app: bold title, three product shots, calm ending."

  • fileNamestring

    Name of the file attached to the scene A prompt.

    Default"brand-kit.zip"

  • fileMetastring

    Detail line under the attached file name.

    Default"Logo, colours, 6 shots"

  • imagestring

    Image src for the player; the default exists only in the Remocn repo

  • overlinestring

    Small caps label above the title in scene B

    Default"LAUNCH FILM · 01"

  • titlestring

    Title shown in the scene B player

    Default"Keys, in an afternoon."

  • exportLabelstring

    Label of the export button above the scene B player.

    Default"Export"

  • fontFamilystring

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

    Default"Figtree"

  • inkstring

    Text color; overrides the theme ink.

  • discsDiscPopProps

    Overrides for disc colors, glyphs, cell size, seed and swap point

  • groundAGshPresetId

    Preset id for the scene A gradients.sh shader ground

  • groundAParamsPartial<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

  • backgroundstring

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

  • sceneAnumber

    Scene A length in frames

    DefaultDISC_POP_DEMO.sceneA

  • sceneBnumber

    Scene B length in frames

    DefaultDISC_POP_DEMO.sceneB

  • transitionnumber

    Transition length in frames

    DefaultDISC_POP_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