Imgcli

文字与标题

划掉改写

一句话自我修正:记号笔划掉句尾,被划掉的词落下离场,新的结尾在原位升起。

制作视频
类型
动画
时长
3.4s
分类
文字与标题
来源
Imgcli

安装

$ npx @imgcli/cli add strike-swap

一句话自我修正:记号笔划掉句尾,被划掉的词落下离场,新的结尾在原位升起。

安装

npx @imgcli/cli add strike-swap

使用

import { StrikeSwap } from "@/components/imgcli/strike-swap";

<StrikeSwap />

默认参数下以 30 fps 渲染 102 帧(3.4 秒),预览画布为 960 × 540。

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.

参数类型默认值说明
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—

许可

MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。

Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>

常见问题

如何在 Remotion 项目中使用划掉改写?

运行 npx @imgcli/cli add strike-swap。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。

划掉改写能做什么?

一句话自我修正:记号笔划掉句尾,被划掉的词落下离场,新的结尾在原位升起。

使用划掉改写前需要准备什么?

准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。