Imgcli

完整场景

作品墙漂移

标题背后是一面作品墙:两排截图卡片朝相反方向缓慢漂移,标题停在前方的细边框卡片上。

制作视频
类型
动画
时长
4.5s
分类
完整场景
来源
Imgcli

安装

$ npx @imgcli/cli add gallery-drift

标题背后是一面作品墙:两排截图卡片朝相反方向缓慢漂移,标题停在前方的细边框卡片上。

安装

npx @imgcli/cli add gallery-drift

使用

import { GalleryDrift } from "@/components/imgcli/gallery-drift";

<GalleryDrift />

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

Use <GalleryDrift headline="Every page, ready to film." images={["/a.png", "/b.png"]} /> for 135 frames at 30 fps (GALLERY_DRIFT_SECONDS). drift sets how fast the rows travel.

参数类型默认值说明
headline
string"Every page, ready to film."
sub
string"Your product's own screens, in motion."
images
readonly string[][cardHome, cardGallery, cardComponent, cardStudio]16:10 images, reused round-robin to fill both rows.
drift
number38Pixels a second each row travels, on a 540px-tall canvas.
fontFamily
string—A face from the Imgcli font list, or any loaded CSS font stack.
theme
Partial<ImgcliTheme>—
mode
"light" | "dark"—
speed
number1

许可

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

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

常见问题

如何在 Remotion 项目中使用作品墙漂移?

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

作品墙漂移能做什么?

标题背后是一面作品墙:两排截图卡片朝相反方向缓慢漂移,标题停在前方的细边框卡片上。

使用作品墙漂移前需要准备什么?

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