Typed Split Wipe
A centered line types on with no cursor, then exits through two opposing directional wipes that slice the letters apart without reflow. A free, MIT-licensed Remotion text animation.
In Remotion, Typed Split Wipe types a line in place with no visible cursor, then exits by splitting it: the start wipes away in one direction and the end in the other while the layout stays fixed. Use it for a product or feature intro that types cleanly and leaves with a directional exit.
$ pnpm dlx shadcn@latest add @remocn/typed-split-wipeHow to build this in Remotion
You don't need a string.slice() typewriter plus a separate clip-path exit, Sequence or TransitionSeries. Install the component and pass the line in three parts:
npx shadcn@latest add @remocn/typed-split-wipeThe type-on renders only the typed substring on each frame, centered, with no caret. At exitAt it switches to a fixed layout that looks identical, so nothing reflows during the exit: the prefix is clipped right to left, the suffix words left to right with a wordStagger, and the anchor slides by anchorShift before it closes last from both sides. The schedule lives in timeline.ts.
Good to know
- Length: 75 frames of motion at 30 fps (150 at 60 fps) with the default props. That is the minimum for its
Sequence; add your own hold on top. The Usage example below is a 60 fps composition, so the numbers it hands to Remotion (durationInFrames,Sequencelengths) are doubled. The component's own props counted in frames stay in 30 fps frames at any frame rate, see Frame rate. - Installs:
remotionfrom npm, plus the remocn helpersframe-rate,timeline. The shadcn CLI copies the source into your project. - Font: Geist Sans through the
--font-geist-sansCSS variable, with a system sans fallback. The font is set inline, so change it in the copied file; aclassNamefont does not override an inline style. - The line is passed in three parts,
prefix,anchorandsuffix: the anchor is the word that moves and closes last.
Usage
The enter renders only the currently typed substring, so every hard character step remains centered. At exitAt, the component switches to a visually identical fixed layout. The prefix clips from right to left and suffix words clip from left to right with a stagger. While those gaps open, the anchor travels left by anchorShift, making the empty spaces on its two sides deliberately uneven before it closes last from both sides.
// src/Root.tsx
import { Composition } from "remotion";
import { TypedSplitWipe } from "@/components/remocn/typed-split-wipe";
const TypedSplitWipeScene = () => (
<TypedSplitWipe
prefix="Introducing"
anchor="X"
suffix="Ads MCP"
/>
);
export const RemotionRoot = () => (
<Composition
id="TypedSplitWipe"
component={TypedSplitWipeScene}
durationInFrames={150}
fps={60}
width={1280}
height={720}
/>
);With Backdrop
The component is transparent. The reference uses warm white text on an almost-black field.
import { Composition } from "remotion";
import { Backdrop } from "@/components/remocn/backdrop";
import { TypedSplitWipe } from "@/components/remocn/typed-split-wipe";
const TypedSplitWipeScene = () => (
<Backdrop fill={{ type: "color", value: "#101010" }}>
<TypedSplitWipe
prefix="Introducing"
anchor="X"
suffix="Ads MCP"
/>
</Backdrop>
);
export const RemotionRoot = () => (
<Composition
id="TypedSplitWipe"
component={TypedSplitWipeScene}
durationInFrames={150}
fps={60}
width={1280}
height={720}
/>
);Props13
| Prop | Type | Default |
|---|---|---|
| prefixrequired | string— Leading text typed first and clipped right-to-left on exit | |
| anchorrequired | string— Central segment that remains visible longest | |
| suffixrequired | string— Space-delimited trailing words clipped left-to-right with a stagger | |
| typeFrames | number30 Frames used to type the complete line | |
| exitAt | number50 Frame on which the segmented exit begins | |
| exitFrames | number20 Frames used by the prefix wipe and final anchor close | |
| wordStagger | number4 Delay in frames between suffix word wipes | |
| anchorShift | number-72 Horizontal anchor travel in pixels during the prefix wipe | |
| fontSize | number42 Font size in pixels | |
| fontWeight | number400 CSS font-weight | |
| color | string"#e8e8e8" Text color | |
| speed | number1 Playback speed multiplier | |
| className | string— Optional className passed to the text container | |
- prefixrequiredstring
Leading text typed first and clipped right-to-left on exit
- anchorrequiredstring
Central segment that remains visible longest
- suffixrequiredstring
Space-delimited trailing words clipped left-to-right with a stagger
- typeFramesnumber
Frames used to type the complete line
Default
30 - exitAtnumber
Frame on which the segmented exit begins
Default
50 - exitFramesnumber
Frames used by the prefix wipe and final anchor close
Default
20 - wordStaggernumber
Delay in frames between suffix word wipes
Default
4 - anchorShiftnumber
Horizontal anchor travel in pixels during the prefix wipe
Default
-72 - fontSizenumber
Font size in pixels
Default
42 - fontWeightnumber
CSS font-weight
Default
400 - colorstring
Text color
Default
"#e8e8e8" - speednumber
Playback speed multiplier
Default
1 - classNamestring
Optional className passed to the text container
Common questions
How do I make a typewriter effect without a cursor in Remotion?
Install Typed Split Wipe with npx shadcn@latest add @remocn/typed-split-wipe and pass prefix, anchor and suffix. The line types on in typeFrames frames with no caret.
How does the typed line leave the screen?
Through two directional wipes: the prefix wipes one way, the suffix words the other, and the anchor closes last. Set when it starts with exitAt and how long it takes with exitFrames.
Can I keep the typing and skip the exit?
There is no switch for it. End your Sequence before exitAt, or use Typewriter for a classic type-on with a blinking caret.
Related effects
- Typewriter: classic type-on with a blinking caret.
- Caret Swap: a caret eats one phrase and types another.
- Per Character Rise: each character rises on its own.