跳到正文
Skillpedia
动效与动画78k · #1732

canopy-part-title

它能做什么

这是一个现成的 HyperFrames 标题模块,带有树叶开场效果。适合希望制作有机、电影感标题序列,并能用自己的文字和字体加以定制的视频制作者。

适用场景

  • ✓当你想要一个带有自然气息的标题场景,树叶分开后露出标题时。
  • ✓当你需要一个可以用自己的文字和设置修改的开场标题时。
  • ✓当你想要一个现成可用的标题模块,而不是从头构建时。

技能链接

https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/canopy-part-title/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/heygen-com/hyperframes/blob/main/registry/blocks/canopy-part-title/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把树叶标题场景加入我的视频,并把标题改为“Understory”和“Move slowly”。”

每周 5 个新技能,1 分钟读完。

工作原理

该模块以可编辑的源文件形式安装。你把它放入主视频文件中,然后设置标题文字以及字号、树叶速度等其他数值。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Canopy Part Title

A dense canopy of textured leaves sweeps across the frame with shallow depth of field, then parts to uncover the first headline; a second, depth-lifted batch carries the second headline past the camera. A handful of leaves stay behind on the type and keep a light breeze. Font, weight, size, letter spacing, leaf counts, sweep speed and the retained-leaf breeze are variables.

Composition id: canopy-part-title. Duration 12 s at 30 fps, 1920×1080.

Files

  • canopy-part-title.html (57 KB)
  • assets/leaf-surface-color.webp (64 KB)
  • assets/leaf-surface-normal.webp (136 KB)

Install

Install with npx hyperframes add canopy-part-title; by default the files above land under compositions/canopy-part-title/. Then mount the block from the host index.html:

<div
  data-composition-id="canopy-part-title"
  data-composition-src="compositions/canopy-part-title/canopy-part-title.html"
  data-start="0"
  data-duration="12"
  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/canopy-part-title/canopy-part-title.html' --variables '{"headline1":"Understory","headline2":"Move slowly"}'

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
headline1 string "Understory" Headline 1
headline2 string "Move slowly" Headline 2
font string "Helvetica" Headline font
fontWeight number 900 Font weight 100–900 step 100
fontSize number 1 Font size (1 = auto-fit) 0.3–2 step 0.01
letterSpacing number 0.01 Letter spacing (em) -0.2–1 step 0.01
background color "#020805" Background
leafCount number 170 Leaves per sweep 40–320 step 1
stayCount number 5 Leaves left behind 0–20 step 1
sweepSpeed number 1 Sweep speed 0.3–3 step 0.05
retainedBreeze number 1 Retained leaf breeze 0–2 step 0.05

Runtime contract

  • One paused GSAP timeline registered as window.__timelines["canopy-part-title"].
  • Re-syncs on the hf-seek CustomEvent; every frame is a closed-form function of time (seeded PRNG only, no rAF loops, no Date.now).
  • Renderer: three.js 0.170.0, GSAP 3.14.2, Canvas 2D, Post-processing, Seeded PRNG, 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.2/dist/gsap.min.js, https://cdn.jsdelivr.net/npm/three@0.170.0/build/three.module.js, https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/postprocessing/EffectComposer.js, https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/postprocessing/RenderPass.js, https://cdn.jsdelivr.net/npm/three@0.170.0/examples/jsm/postprocessing/BokehPass.js.
  • Web fonts from Google Fonts: Gelasio.

Editing rules (from the source project)

  1. Keep data-composition-variables a single-quoted attribute with plain " JSON. Never save it through Studio's Design panel.
  2. Do not put <canvas> in static markup; create it at runtime.
  3. Keep every visual state a function of t; seek-safety is what makes the block renderable.
常见问题

这个场景有多长?

场景时长为 12 秒,每秒 30 帧,分辨率 1920 × 1080。

我能更改文字和字体吗?

可以。标题、字体、字重、字号、字间距和树叶设置都是可以修改的变量。

如何把它加入我的项目?

使用 HyperFrames add 命令安装它,然后把模块挂载到主文件中。

详情

作者的原始描述

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

repo: heygen-com/hyperframes

热度

GitHub 星标
78k
排名
#1732
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能