Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Typewriter
description: Character-by-character text reveal with a deterministic blinking cursor
component: typewriter
vibe: clean
length: 120
useWhen:
- "Simulating a command being typed into a terminal or input — pairs with `terminal-simulator`."
- "A title should feel \"authored live\" rather than appearing all at once."
- "You need the reveal duration to track text length predictably (`charsPerSecond` makes it deterministic)."
avoidWhen:
- "The text is long — typing a paragraph at a readable speed eats far more frames than a viewer will wait; use `staggered-fade-up` or `blur-out-up` instead."
- "You want a designed, weighted entrance (springy, blurred, kinetic) — typing reads as plain/utilitarian; reach for `tracking-in` or `kinetic-center-build`."
- "Multiple lines should reveal together — typing is inherently sequential and single-stream."
- "The text is a transcript of someone speaking — use `caption-typewriter`, which types each word at the pace it was said."
askedAs:
- "typing text with blinking cursor"
- "terminal command typing"
- "I want text typed out character by character with a cursor blinking"
- "simulate someone entering a command or input"
- "title that types itself like on a keyboard"
- "viewer watches a command appear letter by letter, developer vibe"
---
<ComponentPreview name="typewriter" />
<InstallBlock name="typewriter" />
## Usage
```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { Typewriter } from "@/components/remocn/typewriter";
const TypewriterScene = () => (
<Typewriter text="Hello, world" charsPerSecond={22} fontSize={72} />
);
export const RemotionRoot = () => (
<Composition
id="Typewriter"
component={TypewriterScene}
durationInFrames={120}
fps={30}
width={1280}
height={720}
/>
);
```
<PropsTable title="Props"
rows={[
{
name: "text",
type: "string",
required: true,
description: "The text to type out",
},
{
name: "cursor",
type: "boolean",
default: "true",
description: "Whether to render the blinking cursor at the end",
},
{
name: "charsPerSecond",
type: "number",
default: "22",
description: "Typing speed in characters per second",
},
{
name: "fontSize",
type: "number",
default: "48",
description: "Font size in pixels",
},
{
name: "fontWeight",
type: "number",
default: "600",
description: "CSS font-weight",
},
{
name: "color",
type: "string",
default: "\"#171717\"",
description: "Text color (any valid CSS color)",
},
{
name: "cursorColor",
type: "string",
default: "\"#171717\"",
description: "Color of the blinking cursor block",
},
{
name: "className",
type: "string",
description: "Optional className passed to the underlying span",
},
]}
/>