Communitygithub.com

heygen-com/hyperframes

所有 HyperFrames 动画知识——原子运动规则、多阶段场景蓝图、场景过渡、更广泛的运动设计技术,以及七个运行时适配器(默认 GSAP,外加 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。用于处理任何运动或动画任务:选择 2-4 条规则并组合,或加载蓝图,或查询特定运行时 API(例如 GSAP 缓动函数 / Lottie 播放器 / Three.js 混合器)。还涵盖对现有合成的编舞(动画图谱)的审计以及 24 种命名文本动画效果。HyperFrames 原生特性:单条暂停时间线、可安全定位、确定性。

hyperframes 是什么?

该技能为 HyperFrames 框架提供了全面的运动设计知识库,涵盖从原子级动画规则到多阶段场景蓝图、场景过渡以及七个不同运行时适配器(GSAP、Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API 和 TypeGPU)的完整内容。它帮助开发者高效地创建可预测、可定位且确定性的动画,避免了常见的陷阱,如运行时 DOM 测量和不安全的属性过渡。该技能支持组合简单规则以快速产出代码,或加载预设计蓝图以实现复杂的多阶段编排。此外,它还包含用于审计现有动画图谱的脚本,以及 24 种专门的文本动画效果。关键约束条件强调使用单条暂停时间线,禁止随机性或异步时间线构造,并通过 GSAP 变换别名而非 `width`/`height` 等方式保证布局计算安全。该技能通过 `hyperframes-core` 与 HyperFrames 生态系统无缝集成,适用于 Claude Code、Cursor、Codex 等 AI 代理,支持标准安装或插件安装。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/heygen-com/hyperframes/tree/main/skills/hyperframes-animation

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

插件安装: 在执行设置或刷新命令之前,如果此技能位于 HyperFrames 插件内部,请遵循插件执行规则。独立安装请保留下面的更新说明。

HyperFrames 动画

所有运动知识集中在一个技能中:规则(原子级配方)、蓝图(多阶段场景模板)、过渡(场景到场景)、技术(更广泛的运动设计模式)和适配器(各运行时 API)。

关于组合合同(数据属性、子组合、确定性)请参见 hyperframes-core。

默认:组合原子规则

从 rules-index.md 中选择 2-4 条规则,将它们与一条暂停的 GSAP 时间线粘合在一起,完成。这比从蓝图开始更快,产生的代码也更少。

在以下情况下加载蓝图

  • 该场景与现有的预设计多阶段模板(品牌揭示、社交证明等)匹配,并且重用其阶段流水线可以节省实际的创作时间。
  • 你需要一个复杂 4-5 阶段编排的可运行真实代码。

蓝图位于 blueprints-index.md。每个条目指向 blueprints/<id>.md(配方)。不要推测性地读取它;只有在你已经决定需要场景级编排时才加载它。

路由

想要……读取
按触发器/标签选择原子运动模式rules-index.md
读取一条规则的完整 HTML / CSS / GSAP 配方rules/<name>.md
选择多阶段场景模板blueprints-index.md
读取一个蓝图的完整配方blueprints/<id>.md
创作场景过渡(CSS 驱动,在两个片段之间)transitions/overview.md, transitions/catalog.md
查询更广泛的运动设计技术techniques.md
运动模糊——元素上的快门涂抹效果,以及何时不使用它references/motion-blur.md
分析现有合成的动画图谱scripts/animation-map.mjs
GSAP API —— 时间线 / 补间 / 位置参数adapters/gsap.md
GSAP —— 即插即用的效果配方rules/gsap-effects.md
GSAP —— 变换 / 性能adapters/gsap-transforms-and-perf.md
GSAP —— 缓动 / 交错adapters/gsap-easing-and-stagger.md
GSAP —— 时间线 / 标签adapters/gsap-timeline-and-labels.md
Lottie / dotLottie(After Effects 导出,window.__hfLottie)adapters/lottie.md
角色动画(行走循环、吉祥物、关节木偶、手势)adapters/lottie.md → 角色
Three.js / WebGL(3D 场景,AnimationMixer,hf-seek)adapters/three.md
Anime.js(window.__hfAnime)adapters/animejs.md
CSS 关键帧(animation-delay / play-state / fill-mode)adapters/css-animations.md
Web Animations API(element.animate(),currentTime 定位)adapters/waapi.md
TypeGPU / WebGPU(navigator.gpu,WGSL,计算流水线)adapters/typegpu.md
HTML 作为纹理 + WebGL/GLSL 后期特效(通过 drawElementImage 捕获实时 DOM)adapters/html-in-canvas-patterns.md
命名的文本动画效果(24 个 ID,通过外部 animate-text 技能)adapters/animate-text.md

选择运行时

  • GSAP 是 95% 运动工作的默认选择——涵盖时间线编排、变换、缓动、交错。本技能中的所有原子规则均基于 GSAP。
  • Lottie 用于资产自带预制时间线的情况(通常是 After Effects 导出),包括行走、手势或反应的角色。
  • Three.js 用于 3D 场景、相机运动、着色器驱动的视觉效果。
  • Anime.js 用于轻量级补间,当 GSAP 显得大材小用时。
  • CSS 用于简单的重复图案、装饰、闪光——无需 JavaScript 动画开销。
  • WAAPI 用于无需 GSAP 依赖的原生浏览器关键帧。
  • TypeGPU / WebGPU 用于 GPU 渲染的画布(粒子、液体玻璃、自定义着色器)。

多个运行时可以共存于一个组合中。每个运行时将其实例注册到特定于该运行时的全局对象上,以便 HyperFrames 可以一次性定位所有实例。

关键约束

先决条件:hyperframes-core → 不可协商的规则(单条暂停时间线,data-duration 控制时长,无 Math.random / Date.now / performance.now,无 repeat: -1,无页面加载时对后期场景片段进行 gsap.set,无 display 或原始 visibility 补间,以及在 async / setTimeout / Promise 内部不构建时间线)。核心规则仍允许在显式时间线边界使用 GSAP autoAlpha 和零时长可见性设置。这些例外仅可用于非片段元素或片段内部的包装器;框架拥有 .clip 生命周期。请勿在此处重述完整合同。

在核心合同基础上增加的动画工艺条款:

  • 预计算布局常量——不要在补间时从 getBoundingClientRect() 获取位置。补间时的 DOM 测量会导致不同步,因为渲染器并行采样;在组合设置时一次性计算坐标并重复使用。
  • 空间运动仅使用 GSAP 变换别名(x,y,scale,rotation)。核心的允许列表也允许使用 opacity / color / backgroundColor / borderRadius 进行非空间属性补间——但绝不允许使用 width / height / top / left 进行布局更改。

脚本

node skills/hyperframes-animation/scripts/animation-map.mjs <composition-dir> \
  --out <composition-dir>/.hyperframes/anim-map

读取每个注册在 window.__timelines 上的 GSAP 时间线,枚举补间,采样边界框,计算标志,输出 animation-map.json。在创作后使用它来审计编排(死区、交错一致性、生命周期警告)。

animation-map.mjs 首先从当前项目解析辅助包,然后可以引导捆绑的 HyperFrames 包版本。仅当在捆绑的 CLI/技能安装之外运行该技能,并且需要明确固定该引导版本时,才设置 HYPERFRAMES_SKILL_PKG_VERSION=<version>。

另请参阅

  • hyperframes-core —— 组合结构、数据属性、子组合、确定性渲染合同
  • hyperframes-creative —— 调色板、排版、叙述、节拍规划(非动画创意指导)
  • hyperframes-cli —— npx hyperframes lint / check / snapshot / preview / render

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

general-video

>

heygen-com/animejs

Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on window.__hfAnime, making Anime.js seek-driven and deterministic, or translating Anime.js examples into render-safe HyperFrames HTML.

heygen-com/claude-design-hyperframes

Use when running inside Claude Design specifically. Produces a valid, brand-accurate HyperFrames video draft using pre-valid skeletons. For Claude Code / Cursor / Codex, use the `hyperframes` skill instead.

heygen-com/contribute-catalog

Author a new HyperFrames registry block (caption style, VFX block, transition, lower third) or component (text effect, overlay, snippet) and ship it as an upstream PR to the hyperframes repo. Use ONLY when the user wants to CONTRIBUTE to the public catalog — for in-project caption/transition authoring use the `hyperframes` skill, for installing existing registry items use the `hyperframes-registry` skill.

heygen-com/css-animations

CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or CSS-only motion that HyperFrames must seek deterministically during preview and rendering.

heygen-com/gsap

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter, labels, nesting, playback), and performance (transforms, will-change, quickTo). Use when writing GSAP animations in HyperFrames compositions.

heygen-com/hyperframes

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

heygen-com/hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

heygen-com/hyperframes

The technique catalog: five velocity-matched SEAMS (zoom-through, INVERSE zoom-through, cut-the-curve, waterfall cut, rack-focus blur-cut) plus the two in-scene techniques — waterfall ENTRY (staggered arrival cascades for title cards / segment openers) and the nudge curve (slow-fast-slow three-phase group slides). Covers partial-travel (~12% of frame) velocity matching via mirrored power4 eases, the Z scale-sign rule, size-scaled blur (10px text / 18-20px full-frame), word-by-word staggered cuts, cascade pacing by element weight, and the 10/65/25 slide ratio. Read before authoring any transition, text-beat handoff, kinetic text entry, or group reposition. [depth, zoom, inverse-zoom, scale-sign, mirrored-zoom, rack-focus, pacing, velocity, cut-the-curve, waterfall, stagger, cascade, kinetic-text, title-card, segment-opener, nudge, slide, easing, group-motion, z-depth, motion-graphics, cinematic, transition, blur, directional-continuity]

heygen-com/hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

heygen-com/hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

heygen-com/hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

heygen-com/hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

heygen-com/hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

heygen-com/hyperframes

name: embedded-captions

heygen-com/hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

heygen-com/hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

heygen-com/hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

heygen-com/hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

heygen-com/hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

相关技能