← 返回 Skills 市场
lucas-kay8

Animejs

作者 Lucas-Kay8 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install animejs
功能描述
Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on windo...
使用说明 (SKILL.md)

Anime.js for HyperFrames

HyperFrames can seek Anime.js instances through its animejs runtime adapter. The composition owns the animation objects; HyperFrames owns the clock.

Contract

  • Create animations or timelines synchronously during composition initialization.
  • Set autoplay: false so Anime.js does not advance on its own clock.
  • Register every returned animation or timeline on window.__hfAnime.
  • Use finite durations and loop counts.
  • Avoid callbacks that mutate DOM based on wall-clock time, network state, or unseeded randomness.

The adapter seeks every registered instance with instance.seek(timeMs), where timeMs is HyperFrames time in milliseconds.

Basic Pattern

\x3Cscript src="https://cdn.jsdelivr.net/npm/[email protected]/lib/anime.iife.min.js">\x3C/script>
\x3Cscript>
  const anim = anime({
    targets: ".mark",
    translateX: 280,
    rotate: "1turn",
    opacity: [0, 1],
    duration: 1200,
    easing: "easeOutExpo",
    autoplay: false,
  });

  window.__hfAnime = window.__hfAnime || [];
  window.__hfAnime.push(anim);
\x3C/script>

Timeline Pattern

\x3Cscript>
  const tl = anime.timeline({
    autoplay: false,
    easing: "easeOutCubic",
  });

  tl.add({
    targets: ".title",
    translateY: [40, 0],
    opacity: [0, 1],
    duration: 650,
  }).add(
    {
      targets: ".accent",
      scaleX: [0, 1],
      duration: 450,
    },
    250,
  );

  window.__hfAnime = window.__hfAnime || [];
  window.__hfAnime.push(tl);
\x3C/script>

Module Builds

If you use an ES module build, the adapter does not care how the instance was created. It only needs the returned object to expose seek(), pause(), and preferably play():

\x3Cscript type="module">
  import { animate } from "https://cdn.jsdelivr.net/npm/animejs/+esm";

  const anim = animate(".chip", {
    x: "18rem",
    duration: 900,
    autoplay: false,
  });

  window.__hfAnime = window.__hfAnime || [];
  window.__hfAnime.push(anim);
\x3C/script>

Good Uses

  • Small SVG and DOM flourishes where Anime.js syntax is compact.
  • Imported Anime.js examples that can be made seek-driven.
  • Multiple independent micro-animations pushed into the same registry.

Use GSAP for complex scene sequencing unless the user specifically asks for Anime.js. GSAP is still the primary HyperFrames authoring path.

Avoid

  • Leaving autoplay at the Anime.js default.
  • Depending on anime.running auto-discovery instead of explicit window.__hfAnime.push(...).
  • Infinite loops. Compute a finite repeat count from the composition duration.
  • Building animations in timers, promises, event handlers, or after async asset loads.

Validation

After editing a composition that uses Anime.js:

npx hyperframes lint
npx hyperframes validate

Credits And References

安全使用建议
Treat this as an incomplete low-confidence review: the command sandbox failed before the artifacts could be inspected, so no risk should be inferred without rerunning the review in an environment that can read metadata.json and artifact/.
能力评估
Purpose & Capability
No purpose or capability mismatch could be assessed from artifact evidence because file reads were blocked before metadata.json or artifact contents could be opened.
Instruction Scope
No instruction-scope issue is reported because no artifact text was available to support one.
Install Mechanism
No install-mechanism issue is reported because no install artifact text was available to support one.
Credentials
No environment overreach is reported because no artifact evidence was available.
Persistence & Privilege
No persistence or privilege issue is reported because no artifact evidence was available.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install animejs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /animejs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the animejs skill. - Provides Anime.js adapter patterns for use within HyperFrames compositions. - Details contract and best practices for deterministic, seek-based animation control via HyperFrames. - Includes HTML/JS examples for both basic and timeline animation registrations. - Highlights compatibility with both script and ES module builds of Anime.js. - Lists recommended usage and common pitfalls to avoid.
元数据
Slug animejs
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Animejs 是什么?

Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on windo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 Animejs?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install animejs」即可一键安装,无需额外配置。

Animejs 是免费的吗?

是的,Animejs 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Animejs 支持哪些平台?

Animejs 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Animejs?

由 Lucas-Kay8(@lucas-kay8)开发并维护,当前版本 v1.0.0。

💬 留言讨论