glass-shard-title
它能做什么
这是一个现成的 HyperFrames 标题模块,带有玻璃碎片效果。适合希望制作醒目、有光泽的标题动画的视频制作者。
适用场景
- ✓当你想要一个醒目、带有玻璃质感、由碎片自行拼合而成的标题时。
- ✓当你需要一个带有纵深、雾效和运动感的标题场景时。
- ✓当你想要一个可以填入自己文字的现成标题模块时。
技能链接
https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/glass-shard-title/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请把玻璃碎片标题加入我的视频,标题为 Next Level Speed。”
每周 5 个新技能,1 分钟读完。
工作原理
该模块以可编辑的源文件形式安装。玻璃板从纵深处飞入、旋转,并落下拼成标题的平铺形状,然后飞出镜头之外。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Glass Shard Title
Voronoi-cut glass panes fly in from depth, rotating, and land as a tiled silhouette of the headline, then fly out past the camera. Each shard is a Sutherland–Hodgman clip of a jittered blob against its Voronoi cell, so the pieces always cover the type. Glass and matcap surfaces get per-fragment fog; the z-flight is decoupled from the ease so shards visibly traverse it. Tile count 1 gives a single pane.
Composition id: glass-shard-title. Duration 12.16 s at 30 fps, 1920×1080.
Files
glass-shard-title.html(16 KB)assets/ferndale_studio_01_1k.hdr(1.6 MB)assets/fonts/Geist-Bold.ttf(65 KB)assets/fonts/Geist-Regular.ttf(65 KB)assets/fonts/Geist-SemiBold.ttf(65 KB)assets/fonts/Geist-OFL.txt(4 KB)assets/fonts/cormorant-garamond.woff2(37 KB)assets/fonts/CormorantGaramond-OFL.txt(4 KB)assets/glass-main.js(549 KB)assets/Three-LICENSE.txt(1 KB)assets/matcap-1.png(fetched from the CDN at install)
Install
Install with npx hyperframes add glass-shard-title; by default the files above land under compositions/glass-shard-title/. Then mount the block from the host index.html:
<div
data-composition-id="glass-shard-title"
data-composition-src="compositions/glass-shard-title/glass-shard-title.html"
data-start="0"
data-duration="12.16"
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/glass-shard-title/glass-shard-title.html' --variables '{"headline":"Designed in glass","tileCount":8}'
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 |
|---|---|---|---|
headline |
string | "Designed in glass" |
Headline max 40 chars |
tileCount |
number | 8 |
Tiles 1–400 step 1 |
roundness |
number | 0.4 |
Roundness (0-1) 0–1 step 0.01 |
bevel |
number | 0.35 |
Bevel (0-1) 0–1 step 0.01 |
meshSmooth |
number | 0.6 |
Surface smoothness (0-1) 0–1 step 0.01 |
flyInTime |
number | 2.3 |
Fly-in time (s) 0.2–6 step 0.05 |
flyOutTime |
number | 2.4 |
Fly-out time (s) 0.2–6 step 0.05 |
stagger |
number | 0.27 |
Stagger (0-1) 0–1 step 0.01 |
flyInRotation |
number | 5 |
Fly-in rotation (0-60) 0–60 step 0.1 |
flyOutRotation |
number | 6 |
Fly-out rotation (0-6) 0–6 step 0.1 |
chaos |
number | 0.25 |
Outline chaos (0-1) 0–1 step 0.01 |
padding |
number | 1 |
Edge padding (0-1) 0–1 step 0.01 |
sizeVariance |
number | 0.35 |
Size variance (0-1) 0–1 step 0.01 |
gap |
number | 0.03 |
Tile gap 0–0.3 step 0.002 |
easePow |
number | 10 |
Fly-in position ease (1-10) 1–10 step 0.1 |
sideDist |
number | 3 |
Side fly distance 0–60 step 0.5 |
zDist |
number | -42 |
Z fly-from (negative) -400–0 step 2 |
zOut |
number | 14 |
Z fly-out to (+ = past camera) -400–60 step 2 |
fog |
number | 36 |
Fog distance (0 = off) 0–400 step 2 |
Runtime contract
- One paused GSAP timeline registered as
window.__timelines["glass-shard-title"]. - Re-syncs on the
hf-seekCustomEvent; every frame is a closed-form function of time (seeded PRNG only, no rAF loops, no Date.now). - Renderer: three.js 0.181.2 (bundled), GSAP 3.14.2, Canvas 2D, GLSL shaders, HDR environment, Matcap, Seeded PRNG, d3-delaunay, Shadow maps. Budget roughly 350 MB per live instance; run one at a time.
- External runtime dependencies: `https://cdn.jsdelivr.net/npm/gsap@3.14
常见问题
这个场景有多长?
时长为 12.16 秒,每秒 30 帧,分辨率 1920 × 1080。
我能只使用一块玻璃板吗?
可以。将方块数量设为 1,即可得到单块玻璃板。
我能修改什么?
你可以修改文字、字体,以及约 19 项设置,例如碎片运动和雾效。
详情
作者的原始描述
Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.
repo: heygen-com/hyperframes
热度
- GitHub 星标
- 78k
- 排名
- #1736
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
captions-overlay
78k指导你的智能体以叠加方式为视频添加字幕,决定哪些口播内容需要删除、放在字幕条上,或作为重点突出显示。
cut-the-curve
78k教你的智能体使用 HyperFrames 视频中的转场效果,例如流畅的场景切换、推进式穿越和错落的文字入场。
motion-doctrine
78k为你的智能体提供核心规则,使多场景视频像一个连续的镜头移动,而不是一张张分开的幻灯片。
oversized-cursor
78k教你的智能体在视频中加入一个大号的动画指针,引导观众的视线,并让点击看起来像是引发了下一步动作。