heygen-com/hyperframes

gsap

提供 GSAP 的 tween、timeline、easing、stagger 和位置参数参考,适合 HyperFrames 或前端动效开发。具体写法要与项目加载方式和 GSAP 版本一致。

  • 历史版本 SKILL.md
  • 已有中文用途摘要
  • 安装与运行未实测
先判断是否解决你的问题

gsap 是什么?

提供 GSAP 的 tween、timeline、easing、stagger 和位置参数参考,适合 HyperFrames 或前端动效开发。具体写法要与项目加载方式和 GSAP 版本一致。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 gsap,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 gsap

请在 Codex 的当前工作环境中安装并检查 gsap 这个 Skill。

项目身份:heygen-com/hyperframes / gsap
来源:https://github.com/heygen-com/hyperframes/blob/8662598a3ac64018a2999d189ffb369e6d46b53a/skills/gsap/SKILL.md
已定位的源文件:skills/gsap/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-04-30T16:08:43+02:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:54:26.154Z
中文使用说明
已有中文用途摘要;具体用法尚待逐项整理
安装与任务测试
本站未执行安装或任务测试
来源复核
已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料

skills/gsap/SKILL.md · 抓取时间 2026-11-17T10:54:26.154Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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.

查看源文件章节 / Source sections
  • 原文:GSAP
  • 原文:HyperFrames Contract
  • 原文:Core Tween Methods
  • 原文:Common vars
  • 原文:Transforms and CSS
  • 原文:Function-Based Values
  • 原文:Easing
  • 原文:Defaults
  • 原文:Controlling Tweens
  • 原文:gsap.matchMedia() (Responsive + Accessibility)
  • 原文:Timelines
  • 原文:Creating a Timeline
  • 原文:Position Parameter
  • 原文:Labels
  • 原文:Timeline Options
  • 原文:Nesting Timelines
  • 原文:Playback Control
  • 原文:Performance
  • 原文:Prefer Transform and Opacity
  • 原文:will-change
  • 原文:gsap.quickTo() for Frequent Updates
  • 原文:Stagger > Many Tweens
  • 原文:Cleanup
  • 原文:References (loaded on demand)
  • 原文:Best Practices
  • 原文:Do Not
  • 原文:Credits And References
原文:HyperFrames Contract

HyperFrames controls GSAP through its `gsap` runtime adapter. Create a paused timeline synchronously, register it on `window.__timelines` with the exact `data-composition-id`, and let HyperFrames seek it. ```html <script src="https://cdn.jsdelivr.net/npm/gsap@3.14.2/dist/gsap.min.js"></script> <script> window.__timelines = window.__timelines || {}; const tl = gsap.timeline({ paused: true }); tl.from(".title", { y: 48, opacity: 0, duration: 0.6, ease: "power3.out" }, 0); tl.to(".accent", { scaleX: 1, duration: 0.5, ease: "power2.out" }, 0.25); window.__timelines["main"] = tl; // key must equal data-composition-id on the composition root </script> ``` - The registry key must match the composition root's `data-composition-id`. - Do not call `tl.play()` for render-critical motion. - Do not build timelines inside async code, timers, or event handlers. - Keep loops finite. HyperFrames renders finite video durations.

原文:Core Tween Methods

- **gsap.to(targets, vars)** — animate from current state to `vars`. Most common. - **gsap.from(targets, vars)** — animate from `vars` to current state (entrances). - **gsap.fromTo(targets, fromVars, toVars)** — explicit start and end. - **gsap.set(targets, vars)** — apply immediately (duration 0). Always use **camelCase** property names (e.g. `backgroundColor`, `rotationX`).

原文:Common vars

- **duration** — seconds (default 0.5). - **delay** — seconds before start. - **ease** — `"power1.out"` (default), `"power3.inOut"`, `"back.out(1.7)"`, `"elastic.out(1, 0.3)"`, `"none"`. - **stagger** — number `0.1` or object: `{ amount: 0.3, from: "center" }`, `{ each: 0.1, from: "random" }`. - **overwrite** — `false` (default), `true`, or `"auto"`. - **repeat** — finite number; never `-1` in HyperFrames. Compute repeats from the visible duration. **yoyo** — alternates direction with repeat. - **onComplete**, **onStart**, **onUpdate** — callbacks. - **immediateRender** — default `true` for from()/fromTo(). Set `false` on later tweens targeting the same property+element to avoid overwrite.

原文:Transforms and CSS

Prefer GSAP's **transform aliases** over raw `transform` string: | GSAP property | Equivalent | | --------------------------- | ------------------- | | `x`, `y`, `z` | translateX/Y/Z (px) | | `xPercent`, `yPercent` | translateX/Y in % | | `scale`, `scaleX`, `scaleY` | scale | | `rotation` | rotate (deg) | | `rotationX`, `rotationY` | 3D rotate | | `skewX`, `skewY` | skew | | `transformOrigin` | transform-origin | - **autoAlpha** — prefer over `opacity`. At 0: also sets `visibility: hidden`. - **CSS variables** — `"--hue": 180`. - **svgOrigin** _(SVG only)_ — global SVG coordinate space origin. Don't combine with `transformOrigin`. - **Directional rotation** — `"360_cw"`, `"-170_short"`, `"90_ccw"`. - **clearProps** — `"all"` or comma-separated; removes inline styles on complete. - **Relative values** — `"+=20"`, `"-=10"`, `"*=2"`.

原文:Function-Based Values

```javascript gsap.to(".item", { x: (i, target, targets) => i * 50, stagger: 0.1, }); ```

原文:Easing

Built-in eases: `power1`–`power4`, `back`, `bounce`, `circ`, `elastic`, `expo`, `sine`. Each has `.in`, `.out`, `.inOut`.

文件 SHA256:d65cfadd0040f3b72377b43e5ccc088925a1397f19fcd258abcf4ed72100aa16

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

GSAP animation reference for HyperFrames. Covers gsap.to(), from(), fromTo(), easing, stagger, defaults, timelines (gsap.timeline(), position parameter,…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识gsap
来源仓库heygen-com/hyperframes
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次228
快照累计安装量93575

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源