Imgcli

转场

圆点转场

由圆点组成的转场:一片圆点沿对角线逐渐变大,下一个画面从圆点中透出,直到铺满整个画面。

制作视频
类型
动画
时长
2.8s
分类
转场
来源
Imgcli

安装

$ npx @imgcli/cli add dot-wipe

由圆点组成的转场:一片圆点沿对角线逐渐变大,下一个画面从圆点中透出,直到铺满整个画面。

安装

npx @imgcli/cli add dot-wipe

使用

import { DotWipe } from "@/components/imgcli/dot-wipe";

<DotWipe />

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

Use <DotWipe before={<SceneA />} after={<SceneB />} /> for 84 frames at 30 fps (DOT_WIPE_SECONDS). columns sets the dot grid; startAt and wipeSeconds time the wave.

参数类型默认值说明
before
ReactNode—The outgoing scene. Defaults to a title card.
after
ReactNode—The incoming scene. Defaults to a title card on the accent.
beforeTitle
string—
afterTitle
string—
columns
number—Dots across the frame.
wipeSeconds
number—Seconds the wave takes to cross.
startAt
number—Seconds before the wave starts.
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—

许可

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

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

常见问题

如何在 Remotion 项目中使用圆点转场?

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

圆点转场能做什么?

由圆点组成的转场:一片圆点沿对角线逐渐变大,下一个画面从圆点中透出,直到铺满整个画面。

使用圆点转场前需要准备什么?

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