Production-ready animations, transitions, backgrounds, and scenes for Remotion
TypeScript ai-agentsclaude-codedemo-videomcpmcp-servermodel-context-protocolmotion-designproduct-demoreactremotionshadcnvideo
---
title: Caret Wipe
description: Sweep a typing caret across the frame, wiping the outgoing scene into the next
component: caret-wipe
vibe: clean
length: 40
useWhen:
- "Dev-tool, editor, or terminal demos where a typing cursor is the natural through-line between scenes."
- "The scenes are UI or text surfaces that plausibly get \"typed\" or \"erased.\""
- "A directional wipe with a clear metaphor fits better than a generic dissolve."
avoidWhen:
- "The scenes aren't text or UI surfaces — the caret metaphor has nothing to type over."
- "You want a textured dissolve instead of a directional wipe — use `ascii-dissolve` or `dither-dissolve`."
askedAs:
- "typing cursor wipes scene"
- "text cursor sweeps across frame"
- "I want a blinking cursor to drag across and replace one screen with the next"
- "code editor or terminal scenes joined by a typing cursor"
- "dev tool demo where the cursor itself is the scene change"
- "a cursor line sweeps over the old screen and the next one types in"
---
<ComponentPreview name="caret-wipe" />
<InstallBlock name="caret-wipe" />
## Usage
`caretWipe()` is a Remotion transition presentation. Pass it to a
`TransitionSeries.Transition` between two sequences. A text caret sweeps across
the frame — the outgoing scene is erased behind it and the incoming scene is
typed in ahead of it, like a cursor rewriting the screen.
```tsx
import { TransitionSeries, linearTiming } from "@remotion/transitions";
import { caretWipe } from "@/components/remocn/caret-wipe";
export const MyVideo = () => (
<TransitionSeries>
<TransitionSeries.Sequence durationInFrames={70}>
<SceneA />
</TransitionSeries.Sequence>
<TransitionSeries.Transition
timing={linearTiming({ durationInFrames: 40 })}
presentation={caretWipe({ direction: "right" })}
/>
<TransitionSeries.Sequence durationInFrames={70}>
<SceneB />
</TransitionSeries.Sequence>
</TransitionSeries>
);
```
## Props
`caretWipe(props)` accepts:
<PropsTable
rows={[
{
name: "direction",
type: '"left" | "right"',
default: '"right"',
description: "Sweep direction. `right` types the screen left→right; `left` reverses it.",
},
{
name: "caretColor",
type: "string",
default: '"#C3E88D"',
description: "The caret's color — the Remocn lime by default.",
},
{
name: "caretWidth",
type: "number",
default: "3",
description: "Caret bar width, in pixels.",
},
{
name: "caretHeight",
type: "number",
default: "0.5",
description: "Caret bar height as a fraction of frame height (0–1), vertically centered.",
},
]}
/>