cuboid-carousel
它能做什么
这是一个现成的 HyperFrames 三维模块,用于展示卡片轮播。适合希望在一排移动的三维卡片中展示多个条目(例如功能或用户评价)的视频制作者。
适用场景
- ✓当你想在一排移动的三维卡片中展示多张卡片或条目时。
- ✓当你需要一个动感且精致的产品或功能展示时。
- ✓当你希望有一个现成的三维轮播,并可以填入自己的内容时。
技能链接
https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/cuboid-carousel/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的视频做一个三维轮播,展示我们的四个主要功能,每张卡片展示一个功能。”
每周 5 个新技能,1 分钟读完。
工作原理
该模块以可编辑的源文件形式安装。卡片可以来自内置列表,也可以来自你在变量中提供的列表。场景设定了卡片如何飞入、减速并离开。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cuboid Carousel
Rounded, bevelled cuboids carrying card content fly in from the right as one rigid group, cruise with a per-cuboid rotation stagger, decelerate to a hero hold, then exit left. Spacing is derived from the cuboid dimensions and the largest reachable X half-extent, so cuboids can never overlap. Forty variables carry the original DialKit schema: geometry, materials, lights, shadows, backdrop, camera and every segment duration and easing. Cards come from the built-in list or a JSON variable.
Composition id: cuboid-carousel. Duration 6.666666666666667 s at 30 fps, 1920×1080.
Files
cuboid-carousel.html(38 KB)assets/Three-LICENSE.txt(1 KB)assets/addons/environments/RoomEnvironment.js(5 KB)assets/addons/utils/BufferGeometryUtils.js(36 KB)assets/cuboid-motion.js(593 KB)assets/gsap-3.14.2.min.js(128 KB)assets/GSAP-NOTICE.txt(1 KB)assets/three.core.min.js(554 KB)assets/three.module.min.js(468 KB)
Install
Install with npx hyperframes add cuboid-carousel; by default the files above land under compositions/cuboid-carousel/. Then mount the block from the host index.html:
<div
data-composition-id="cuboid-carousel"
data-composition-src="compositions/cuboid-carousel/cuboid-carousel.html"
data-start="0"
data-duration="6.666666666666667"
data-track-index="1"
data-width="1920"
data-height="1080"
></div>
Render with custom values by targeting the composition file directly:
npx --yes hyperframes@0.8.12 render 'compositions/cuboid-carousel/cuboid-carousel.html' --variables '{"cardsJson":"","heroCard":4}'
Variables
Read at runtime via window.__hyperframes.getVariables(); declared on the composition root as data-composition-variables (single-quoted attribute, plain JSON).
| id | type | default | label / range |
|---|---|---|---|
cardsJson |
string | "" |
Content · Cards JSON (optional, see CARDS in source) |
heroCard |
number | 4 |
Content · Hero card (1-based) 1–12 step 1 |
count |
number | 8 |
Content · Repeating card count 1–12 step 1 |
gap |
number | 0.01 |
Layout · Extra gap between cuboids 0–1.5 step 0.005 |
cuboidWidth |
number | 1.7 |
Cuboid · Width 0.3–5 step 0.01 |
cuboidHeight |
number | 2.4 |
Cuboid · Height 0.3–6 step 0.01 |
cuboidDepth |
number | 0.14 |
Cuboid · Thickness (depth) 0.02–2 step 0.01 |
cornerRadius |
number | 0.105 |
Cuboid · Corner radius 0–0.6 step 0.005 |
bevelSize |
number | 0.03 |
Cuboid · Bevel size (edge chamfer) 0–0.3 step 0.001 |
bevelThickness |
number | 0.04 |
Cuboid · Bevel thickness 0–0.3 step 0.001 |
smoothness |
number | 32 |
Cuboid · Smoothness (segments) 1–32 step 1 |
bodyColor |
color | "#242424" |
Cuboid · Body colour |
roughness |
number | 0.6 |
Cuboid · Roughness 0–1 step 0.01 |
metalness |
number | 0.4 |
Cuboid · Metalness 0–1 step 0.01 |
heroScale |
number | 1 |
Hero · Isolated scale 1–1.6 step 0.01 |
heroFillIntensity |
number | 0.55 |
Hero · Face light intensity 0–2 step 0.05 |
heroExitX |
number | 288 |
Hero · Exit X rotation degrees -720–720 step 1 |
heroExitY |
number | -234 |
Hero · Exit Y rotation degrees -720–720 step 1 |
heroExitZ |
number | 198 |
Hero · Exit Z rotation degrees -720–720 step 1 |
ambientIntensity |
number | 0.35 |
Lights · Ambient intensity 0–4 step 0.01 |
ambientColor |
color | "#ffffff" |
Lights · Ambient colour |
topIntensity |
number | 3.1 |
Lights · Top rig intensity 0–12 step 0.05 |
topColor |
color | "#ffffff" |
Lights · Top rig colour |
bottomIntensity |
number | 2.15 |
Lights · Bottom rig intensity 0–12 step 0.05 |
bottomColor |
color | ` |
常见问题
我如何添加自己的卡片?
你可以把自己的卡片列表作为变量传入,也可以编辑内置列表。
卡片会重叠吗?
不会。间距是根据卡片尺寸计算的,因此卡片不会重叠。
这个场景有多长?
场景时长约为 6.7 秒,每秒 30 帧,分辨率 1920 × 1080。
详情
作者的原始描述
A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.
repo: heygen-com/hyperframes
热度
- GitHub 星标
- 78k
- 排名
- #1734
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
captions-overlay
78k指导你的智能体以叠加方式为视频添加字幕,决定哪些口播内容需要删除、放在字幕条上,或作为重点突出显示。
cut-the-curve
78k教你的智能体使用 HyperFrames 视频中的转场效果,例如流畅的场景切换、推进式穿越和错落的文字入场。
motion-doctrine
78k为你的智能体提供核心规则,使多场景视频像一个连续的镜头移动,而不是一张张分开的幻灯片。
oversized-cursor
78k教你的智能体在视频中加入一个大号的动画指针,引导观众的视线,并让点击看起来像是引发了下一步动作。