Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Matrix Decode
description: Random scramble resolves left-to-right into target text
component: matrix-decode
vibe: tech
length: 90
useWhen:
- "A hacker, terminal, or cyberpunk aesthetic is required and the scramble-to-reveal glyph effect is on-brand."
- "A short code, token, or technical label should appear as if being deciphered in real time."
- "The scene needs a reveal that feels procedural and data-driven rather than designed."
avoidWhen:
- "The content is a human sentence or marketing copy — the glitchy scramble reads as broken text to non-technical audiences; use `typewriter` for a clean character-by-character reveal with a more legible progression."
- "The tone is premium or editorial — use `focus-blur-resolve` or `blur-out-up` for atmospheric reveals without the glitch aesthetic."
- "The text is long — the left-to-right lock is designed for short labels and codes; long strings extend `revealDuration` to an uncomfortable length."
askedAs:
- "scrambled text resolving"
- "I want random characters settling into the message"
- "hacker terminal cyberpunk aesthetic reveal"
- "short code word decoding left to right"
- "hacker text decode"
- "matrix scramble"
---
<ComponentPreview name="matrix-decode" />
<InstallBlock name="matrix-decode" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { MatrixDecode } from "@/components/remocn/matrix-decode";
const MatrixDecodeScene = () => (
<MatrixDecode text="ACCESS GRANTED" revealDuration={60} />
);
export const RemotionRoot = () => (
<Composition
id="MatrixDecode"
component={MatrixDecodeScene}
durationInFrames={90}
fps={30}
width={1280}
height={720}
/>
);
```
<PropsTable title="Props"
rows={[
{
name: "text",
type: "string",
required: true,
description: "The final text the scramble resolves into",
},
{
name: "charset",
type: "string",
default: "\"!@#$%^&*()_+-=<>?/\\\\|\"",
description: "Pool of characters used while scrambling",
},
{
name: "fontSize",
type: "number",
default: "72",
description: "Font size in pixels",
},
{
name: "color",
type: "string",
default: "\"#22c55e\"",
description: "Text color",
},
{
name: "fontWeight",
type: "number",
default: "600",
description: "CSS font-weight",
},
{
name: "revealDuration",
type: "number",
default: "60",
description: "How many frames it takes for the full text to decode",
},
{
name: "speed",
type: "number",
default: "1",
description: "Multiplier for animation speed",
},
{
name: "className",
type: "string",
description: "Optional className passed to the text span",
},
]}
/>