Text & Titles
Strike Swap
A sentence corrects itself: a marker strikes through its ending, the struck words drop away, and the new ending rises into the same place.
- Type
- Animation
- Duration
- 3.4s
- Category
- Text & Titles
- Source
- Imgcli
Install
A sentence corrects itself: a marker strikes through its ending, the struck words drop away, and the new ending rises into the same place.
Installation
npx @imgcli/cli add strike-swapUsage
import { StrikeSwap } from "@/components/imgcli/strike-swap";
<StrikeSwap />Render at 30 fps for 102 frames (3.4 seconds) with the default props. The preview uses a 960 × 540 canvas.
Use <StrikeSwap lead="Your launch video, done" before="next week." after="this afternoon." /> for 102 frames at 30 fps (STRIKE_SWAP_SECONDS). strikeColor defaults to the theme's destructive colour; accentColor colours the new ending.
| Prop | Type | Default | Description |
|---|---|---|---|
lead | string | — | The part of the sentence that stays. |
before | string | — | The ending that gets struck out. |
after | string | — | The ending that replaces it. |
fontSize | number | — | Type size in pixels on a 540px-tall canvas. |
fontWeight | number | — | |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
strikeColor | string | — | |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | — |
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 Strike Swap to a Remotion project?
Run npx @imgcli/cli add strike-swap in your Remotion project. The CLI copies the editable source into components/imgcli/ under your source root and installs its dependencies.
What is Strike Swap?
Strike Swap is a Remotion strikethrough text animation for React. A sentence corrects itself: a marker strikes through its ending, the struck words drop away, and the new ending rises into the same place.
What do I need before using Strike Swap?
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.