Communitygithub.com

AntlersSam/saas-launch-video-kit

所有用于 HyperFrames 的动画知识——原子运动规则、多阶段场景蓝图、场景过渡、更广泛的运动设计技术以及七个运行时适配器(默认 GSAP,加上 Lottie、Three.js、Anime.js、CSS 关键帧、Web 动画 API、TypeGPU)。适用于任何运动或动画任务:选择 2-4 条规则进行组合,或加载蓝图,或查阅特定运行时的 API(例如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。还包括对现有构图编排(动画映射)的审核以及 24 种已命名的文本动画效果。HyperFrames 原生:单一暂停时间线,安全寻帧,确定性。

saas-launch-video-kit 是什么?

这个技能包是 HyperFrames 框架下所有运动与动画知识的集中仓库。它提供了原子级的运动规则(如缓动、交错、变换)和预先设计好的多阶段场景蓝图(如品牌展示、社交证明),开发者可以从中选取 2-4 条规则自由组合,或直接加载整个蓝图来快速搭建复杂的多阶段编排。同时,它还包含了场景过渡方案、广泛适用的运动设计技术,以及七个运行时的适配器(GSAP、Lottie、Three.js、Anime.js、CSS 关键帧、Web 动画 API 和 TypeGPU),使得跨运行时的动画与交互变得统一且可预测。该技能遵守 HyperFrames 的核心约束(单一暂停时间线、确定性、无随机性),并内置了用于分析现有构图动画映射的脚本(animation-map.mjs)。无论是从零构建动画、审核复杂的编排,还是将预烘焙的 Lottie 角色动画集成到 3D 场景中,这个技能包都能为开发者提供最直接、最一致的指导。它支持多种运行时的共存,并通过全局注册表让 HyperFrames 在单个 pass 中准确寻帧,确保了动画的确定性。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/AntlersSam/saas-launch-video-kit/tree/HEAD/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 动画 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 4 individual skills — each has its own dedicated page.

AntlersSam/saas-launch-video-kit

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

AntlersSam/saas-launch-video-kit

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

AntlersSam/saas-launch-video-kit

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, history, clean, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

AntlersSam/saas-launch-video-kit

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

相关技能