# Text Rewrite: Typewriter Animation

A headline types in, its last words get selected and erased, and a new ending types in. Copy this video template's code for an AI agent, or edit it in Subclip.

Canonical URL: https://www.subclip.app/motion-graphics-templates/remotion/text-rewrite

Preview video: https://subclipweb.subclip.app/motion-graphics-templates/v1/previews/motion-template-remotion-snapcn-text-rewrite.mp4?v=ad1732bc50

A typewriter text animation where a headline types in, its ending gets selected and erased, and new words are typed in its place.

- Framework: Remotion
- Category: Titles
- Duration: 3 s
- Aspect ratio: 16:9 landscape
- Code: Get the code (free sign-in): https://www.subclip.app/motion-graphics-templates/remotion/text-rewrite

A headline types in word by word at the center of a light frame, with a small icon mark that can sit beside it. The camera then cuts in closer, and a selection drags across the end of the line. That part is erased, and the new ending types in to finish the sentence before the selection clears. The shot runs about three and a half seconds and reads like someone editing copy live.

Set the full headline, the part to keep and the words to append. Each step has its own timing: word entry, settle, cut, zoom, drag, erase, rewrite and deselect. You can also adjust the font size, weight and vertical position, the selection opacity and angle, the mark size, glow, accent color, light or dark mode and font. It works for taglines that change mid-sentence, rebrands and before-and-after messaging.

## Use it for

- Rewriting a tagline on screen
- Before and after messaging
- Rebrand or rename reveals
- Copywriting tool demos

## What you can change

- `speed`: Playback speed (Number)
- `headline`: Headline (Text)
- `keep`: Text to keep (Number)
- `append`: New ending (Text)
- `wordAt`: Typing start (Number)
- `wordStagger`: Time between words (Number)
- `wordDuration`: Word animation length (Number)
- `coolDelay`: Settle delay (Number)
- `coolDuration`: Settle length (Number)
- `cutAt`: Cut time (Number)
- `zoomDuration`: Zoom length (Number)
- `zoom`: Zoom amount (Number)
- `dragAt`: Selection start (Number)
- `dragDuration`: Selection length (Number)
- `eraseAt`: Erase start (Number)
- `eraseDuration`: Erase length (Number)
- `rewriteAt`: Retype start (Number)
- `rewriteDuration`: Retype length (Number)
- `deselectAt`: Deselect time (Number)
- `deselectDuration`: Deselect length (Number)
- `fontSize`: Font size (Number)
- `fontWeight`: Font weight (Number)
- `centerY`: Vertical position (Number)
- `selectionOpacity`: Selection opacity (Number)
- `selectionAngle`: Selection angle (Number)
- `markSize`: Mark size (Number)
- `glow`: Glow size (On or off)
- `glowOpacity`: Glow opacity (Number)
- `accentColor`: Accent color (Color)
- `mode`: Light or dark mode (Text)
- `fontFamily`: Font (Text)
- `stageBackground`: Background around the scene (Text)

## How to use this template

1. Download Subclip for Mac or Windows. Every template on this page comes pre-installed.
2. Open the Templates panel, pick Text Rewrite and drop it on your timeline.
3. Change the text, colors and timing in the layer settings, or ask the AI agent to edit it for you.
4. Export your video, or download the code to use the template in your own project.

Built on Text Rewrite from snapcn: https://snapcn.dev