屏幕与设备
手机流程演示
手机上的应用操作演示:每个页面停留片刻,手指点击指定位置,下一页从右侧推入,左侧步骤说明同步高亮。
安装
npx @imgcli/cli add phone-flow使用
import { PhoneFlow } from "@/components/imgcli/phone-flow";
<PhoneFlow />默认参数下以 30 fps 渲染 162 帧(5.4 秒),预览画布为 960 × 540。
Use <PhoneFlow steps={[{ src: "/home.png", tap: { x: 0.5, y: 0.74 }, caption: "Open the catalogue" }, { src: "/next.png", caption: "Pick a scene" }]} /> for phoneFlowSeconds(steps.length) seconds at 30 fps (162 frames for three).
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
steps | readonly PhoneFlowStep[] | [
{
src: homeScreen,
tap: { x: 0.5, y: 0.8 },
caption: "Open the catalogue",
},
{ src: galleryScreen, tap: { x: 0.5, y: 0.454 }, caption: "Pick a sce | |
stepSeconds | number | 1.5 | Seconds each screen holds before its tap. |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
bezelColor | string | — | The phone's body colour. |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用手机流程演示?
运行 npx @imgcli/cli add phone-flow。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
手机流程演示能做什么?
手机上的应用操作演示:每个页面停留片刻,手指点击指定位置,下一页从右侧推入,左侧步骤说明同步高亮。
使用手机流程演示前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。