Skip to content

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

3.5 KB
Raw Blame
---
title: Grain Dissolve
description: Disintegrate the outgoing scene into soft grainy shapes and condense the next scene out of the noise
component: grain-dissolve
vibe: premium
length: 76
useWhen:
  - "The video has an editorial, textured, analog feel — grain reads as film and print."
  - "Chapter or mood changes where the scene should decompose rather than move."
  - "The `shape` prop should match the brand: `blob` organic, `wave` calm, `dots` halftone, `sphere` volumetric."
avoidWhen:
  - "The transition must be fast — under ~50 frames the intensity/softness sweep has no room to read."
  - "The tone is crisp and minimal — the grain texture adds visual noise by design."
askedAs:
  - "grainy noise dissolve"
  - "film grain scene fade"
  - "I want the old scene to crumble into soft grain and the new one to form from noise"
  - "analog textured chapter change with print feel"
  - "mood shift where the picture breaks into speckled shapes"
  - "scene turns to grainy blobs then condenses into the next"
---

<ComponentPreview name="grain-dissolve" />

<InstallBlock name="grain-dissolve" />

## Usage

`grainDissolve()` is a Remotion transition presentation. Pass it to a
`TransitionSeries.Transition` between two sequences. The grain field starts as
flat, hard-edged shapes and both `intensity` and `softness` sweep from 0 to 1
across the transition — the figures grow, roughen into grain, and the incoming
scene condenses out of the dissolved texture. Give the sweep enough frames to
read (76 works well).

```tsx
import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { grainDissolve } from "@/components/remocn/grain-dissolve";

export const MyVideo = () => (
  <TransitionSeries>
    <TransitionSeries.Sequence durationInFrames={96}>
      <SceneA />
    </TransitionSeries.Sequence>
    <TransitionSeries.Transition
      timing={linearTiming({ durationInFrames: 76 })}
      presentation={grainDissolve()}
    />
    <TransitionSeries.Sequence durationInFrames={96}>
      <SceneB />
    </TransitionSeries.Sequence>
  </TransitionSeries>
);
```

The `shape` prop picks the figure family the field is built from — `"wave"`,
`"dots"`, `"truchet"`, `"corners"`, `"ripple"`, `"blob"`, or `"sphere"`. Shapes
are discrete (they cannot blend into each other), but each one gives the same
sweep a different character: `"blob"` reads organic, `"wave"` calm and banded,
`"dots"` halftone-like, `"sphere"` volumetric.

## Props

`grainDissolve(props)` accepts:

<PropsTable
  rows={[
    {
      name: "colors",
      type: "string[]",
      default: '["#3a3a52", "#4a4a68", "#8f88ae"]',
      description: "Colors of the grain shapes, up to 7.",
    },
    {
      name: "colorBack",
      type: "string",
      default: '"#141318"',
      description: "Backdrop behind the shapes during the transition.",
    },
    {
      name: "shape",
      type: "string",
      default: '"blob"',
      description: "Figure family of the field. One of wave, dots, truchet, corners, ripple, blob, sphere.",
    },
    {
      name: "noise",
      type: "number",
      default: "0.3",
      description: "Amount of per-pixel grain over the shapes.",
    },
    {
      name: "zoom",
      type: "number",
      default: "2",
      description: "Magnification of the figure field. Raise it until the shapes fill the frame, lower it to show more of the backdrop.",
    },
    {
      name: "speed",
      type: "number",
      default: "1",
      description: "Shader animation speed.",
    },
  ]}
/>