Imgcli

屏幕与设备

手机功能展示

移动端宣传镜头:左侧标题逐词出现,右侧手机侧转着升入画面,随后屏幕向下滚动展示你的页面。

制作视频
类型
动画
时长
4.6s
分类
屏幕与设备
来源
Imgcli

安装

$ npx @imgcli/cli add phone-feature

移动端宣传镜头:左侧标题逐词出现,右侧手机侧转着升入画面,随后屏幕向下滚动展示你的页面。

安装

npx @imgcli/cli add phone-feature

使用

import { PhoneFeature } from "@/components/imgcli/phone-feature";

<PhoneFeature />

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

Use <PhoneFeature headline="Every scene, in your pocket." screen={{ src: "/mobile-page.png", aspect: 390 / 2100 }} /> for 138 frames at 30 fps (PHONE_FEATURE_SECONDS). A tall page capture scrolls; scroll sets how far.

参数类型默认值说明
headline
string"Every scene, in your pocket."
accentWords
number2How many of the headline's last words take the accent colour.
body
string"Preview every scene on the phone you'll share it from."
screen
PhoneFeatureMedia{ src: defaultPhoneScreen, aspect: 780 / 4200 }
scroll
number0.55How far down the page the screen scrolls, 0–1 of the page's overflow.
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
number1

许可

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

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

常见问题

如何在 Remotion 项目中使用手机功能展示?

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

手机功能展示能做什么?

移动端宣传镜头:左侧标题逐词出现,右侧手机侧转着升入画面,随后屏幕向下滚动展示你的页面。

使用手机功能展示前需要准备什么?

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