Text & Titles
Ink Sweep
A line inks itself as it is read: it fades in faint, and a sweep runs along it letter by letter, flashing each letter to the accent before it settles to full ink.
- Type
- Animation
- Duration
- 3.4s
- Category
- Text & Titles
- Source
- Imgcli
Install
A line inks itself as it is read: it fades in faint, and a sweep runs along it letter by letter, flashing each letter to the accent before it settles to full ink.
Installation
npx @imgcli/cli add ink-sweepUsage
import { InkSweep } from "@/components/imgcli/ink-sweep";
<InkSweep />Render at 30 fps for 102 frames (3.4 seconds) with the default props. The preview uses a 960 × 540 canvas.
Use <InkSweep text="Every frame is code you own." /> for 102 frames at 30 fps (INK_SWEEP_SECONDS). sweepSeconds sets the read-along speed; accentColor sets the flash.
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Every frame is code you own." | |
sweepSeconds | number | 1.6 | Seconds the sweep takes from the first letter to the last. |
fontSize | number | 64 | Type size in pixels on a 540px-tall canvas. |
fontWeight | number | 600 | |
maxWidth | number | 0.8 | |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
License
MIT. Free for personal and commercial use. Preserve the copyright and license notice.
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
Frequently asked questions
How do I add Ink Sweep to a Remotion project?
Run npx @imgcli/cli add ink-sweep in your Remotion project. The CLI copies the editable source into components/imgcli/ under your source root and installs its dependencies.
What is Ink Sweep?
Ink Sweep is a Remotion text highlight sweep animation for React. A line inks itself as it is read: it fades in faint, and a sweep runs along it letter by letter, flashing each letter to the accent before it settles to full ink.
What do I need before using Ink Sweep?
Use Node.js 20.19 or newer and an existing Remotion project. Create one with npx create-video@latest. The component is free and MIT licensed.