Skip to content

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

3.0 KB
Raw Blame
---
title: ASCII Dissolve
description: Dissolve one scene into the next through a drifting field of ASCII glyphs
component: ascii-dissolve
vibe: tech
length: 40
useWhen:
  - "The video has a retro, terminal, or print aesthetic — the text-grid dissolve reads as CRT or risograph texture."
  - "Content is dev-tool or teletype in tone and a monospace-glyph cut fits the brand."
  - "The cut needs to stay content-agnostic — it works between any two scenes with no color matching required."
avoidWhen:
  - "The tone is soft or organic — use `grain-dissolve` or `perlin-dissolve` for a gentler texture instead."
  - "You need a camera move rather than a dissolve — use `whip-pan` or `push-through`."
  - "The brand is clean and minimal — the character grid reads as deliberately rough, not polished."
askedAs:
  - "ascii character scene change"
  - "text glyph fade between scenes"
  - "I want one scene to melt into the next through drifting letters and symbols"
  - "retro terminal look for a cut using a field of characters"
  - "CRT or risograph texture when switching between two screens"
  - "cut that feels like the picture turns into a text grid"
---

<ComponentPreview name="ascii-dissolve" />

<InstallBlock name="ascii-dissolve" />

## Usage

`asciiDissolve()` is a Remotion transition presentation. Pass it to a
`TransitionSeries.Transition` between two sequences. The outgoing scene blurs
out under a rising grid of monospace glyphs, then the incoming scene resolves
cell by cell as the field dissolves.

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

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

## Props

`asciiDissolve(props)` accepts:

<PropsTable
  rows={[
    {
      name: "colorBack",
      type: "string",
      default: '"#0d0d10"',
      description: "Canvas behind the glyphs during the hold.",
    },
    {
      name: "colorFront",
      type: "string",
      default: '"rgba(242,242,242,0.6)"',
      description: "Glyph color.",
    },
    {
      name: "cellSize",
      type: "number",
      default: "22",
      description: "Row height of one glyph cell, in pixels.",
    },
    {
      name: "ramp",
      type: "string",
      default: '" .:-=+*#%@"',
      description: "Density ramp, lightest to densest.",
    },
    {
      name: "accentColor",
      type: "string",
      description: "Optional second color for a sparse scattering of accent cells.",
    },
    {
      name: "accentDensity",
      type: "number",
      default: "0.05",
      description: "Share of cells rendered in the accent color, 0–1.",
    },
  ]}
/>