← Back to Skills Marketplace
lucas-kay8

Animejs

by Lucas-Kay8 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
37
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install animejs
Description
Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on windo...
README (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

Usage Guidance
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/.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install animejs
  3. After installation, invoke the skill by name or use /animejs
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug animejs
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Animejs?

Anime.js adapter patterns for HyperFrames. Use when writing Anime.js animations or timelines inside HyperFrames compositions, registering animations on windo... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.

How do I install Animejs?

Run "/install animejs" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Animejs free?

Yes, Animejs is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Animejs support?

Animejs is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Animejs?

It is built and maintained by Lucas-Kay8 (@lucas-kay8); the current version is v1.0.0.

💬 Comments