RemotionUI
Scenes

Code Reveal

Progressive code reveal with highlighted lines.

Sceneblocks

Install
npx remotion-ui@latest add code-reveal

Reveal code, commands, or config snippets line by line.

Live preview

AI usage

Install first, then import the copied source component locally.

AI guide

Install

npx remotion-ui@latest add code-reveal

Import after install

@/remotion/scenes/code-reveal
  • Use when: full-frame scenes, overlays, cards, and reusable video sections.
  • Customize: code, highlightedLines, title, plus copied source for timing, layout, colors, and typography.
  • Rule: do not import this component from the remotion-ui npm package; it is copied into your project.

Usage

import { CodeReveal } from "@/remotion/scenes/code-reveal";

<CodeReveal code={'npx remotion-ui add media-frame'} highlightedLines={[1]} />

API Reference

PropTypeDescription
code*stringCode or terminal text.
highlightedLinesnumber[]1-based highlighted line numbers.
titlestringScene title.

Related