Communitygithub.com

hyperframes-animation

涵盖 HyperFrames 的全部动画知识:原子运动规则、多阶段场景蓝图、场景过渡、宽泛的动态设计技术,以及七个运行时适配器(默认 GSAP,外加 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。适用于任何运动或动画任务:挑选 2-4 条规则进行组合,或加载蓝图,或查询特定运行时 API(如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。还包括审核现有动画组合的功能。

hyperframes-animation 是什么?

hyperframes-animation 技能将 HyperFrames 的动画知识整合到一个技能中:原子规则(可复用的动作模式)、多阶段场景蓝图、场景间过渡、宽泛的动态设计技术,以及针对七个运行时的适配器 API(GSAP、Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。 您可以选择 2-4 条原子规则并将其组合成单个暂停的 GSAP 时间线,从而快速创建动画,这比从头开始构建蓝图更快。当场景需要预设计的复杂多阶段编排(如品牌展示或社交证明)时,应加载蓝图。该技能还支持场景间过渡、查看技术文档,以及通过 `animation-map.mjs` 脚本对现有动画组合进行审核。 运行时选择遵循准则:95% 的动画工作使用 GSAP;对于 After Effects 导出的资产使用 Lottie;3D 场景使用 Three.js;轻量级补间使用 Anime.js;简单装饰使用 CSS;原生浏览器关键帧使用 WAAPI;GPU 渲染画布使用 TypeGPU。多个运行时可在同一组合中共存,每个运行时在各自全局上注册实例,HyperFrames 随后可统一控制。 关键约束包括:依赖 `hyperframes-core` 的非谈判规则(单个暂停时间线、`data-duration` 控制时长、禁止 `Math.random`/`Date.now`/`performance.now`、禁止 `repeat: -1` 等);动画制作层面的附加要求包括:使用预计算布局常量而非在补间时调用 `getBoundingClientRect()`,以及仅使用 GSAP 变换别名(`x`、`y`、`scale`、`rotation`)进行空间运动。

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

在你喜欢的 AI 中提问

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

文档

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
分析现有组合的动画映射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
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
命名的文本动画效果(通过外部 animate-text 技能提供 24 个 ID)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 19 individual skills — each has its own dedicated page.

embedded-captions

>

faceless-explainer

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.

figma

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.

general-video

>

hyperframes

>

hyperframes-audio

>

hyperframes-cli

>

hyperframes-core

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class=

hyperframes-creative

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

hyperframes-keyframes

>

hyperframes-registry

Install, discover, and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

jasonfast123/hyperframes-skills

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.

media-use

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

motion-graphics

>

music-to-video

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

pr-to-video

Turn a GitHub pull request (a PR URL, owner/repo#N, or

remotion-to-hyperframes

Port an existing Remotion (React) composition

slideshow

>

talking-head-recut

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on

相关技能