Imgcli

文字与标题

三句硬切宣言

三句话用硬切连接:第一句逐词落定,末词下方画出强调线;第二句从左侧擦入;收尾一句从自身基线升起。

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

安装

$ npx @imgcli/cli add statement-cuts

三句话用硬切连接:第一句逐词落定,末词下方画出强调线;第二句从左侧擦入;收尾一句从自身基线升起。

安装

npx @imgcli/cli add statement-cuts

使用

import { StatementCuts } from "@/components/imgcli/statement-cuts";

<StatementCuts />

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

Use <StatementCuts lineOne="Ship the feature." lineTwo="Then ship" lineThree="the video." /> for 114 frames at 30 fps (STATEMENT_CUTS_SECONDS). secondAt and thirdAt move the cuts; theme, mode, accentColor and fontFamily restyle it.

参数类型默认值说明
lineOne
string"Ship the feature."
lineTwo
string"Then ship"
lineThree
string"the video."The closer: one or two words, set large.
secondAt
number1.5Seconds from the start of the scene to each hard cut.
thirdAt
number2.6
fontSize
number64Type size of lines one and two, in pixels on a 540px-tall canvas.
fontWeight
number600
fontFamily
string—A face from the Imgcli font list, or any loaded CSS font stack.
accentColor
string—
theme
Partial<ImgcliTheme>—
mode
"light" | "dark"—
speed
number1

许可

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

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

常见问题

如何在 Remotion 项目中使用三句硬切宣言?

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

三句硬切宣言能做什么?

三句话用硬切连接:第一句逐词落定,末词下方画出强调线;第二句从左侧擦入;收尾一句从自身基线升起。

使用三句硬切宣言前需要准备什么?

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