← 返回 Skills 市场
lucas-kay8

Css Animations

作者 Lucas-Kay8 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install css-animations
功能描述
CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or...
使用说明 (SKILL.md)

CSS Animations for HyperFrames

HyperFrames can seek CSS keyframe animations through its css runtime adapter. Use this for simple repeated motifs, background motion, shimmer, glow, masks, and non-sequenced decoration.

For scene choreography, GSAP is usually clearer. CSS animations work best when the motion belongs to one element and has a fixed duration.

Contract

  • Put the animated element in the DOM before runtime initialization finishes.
  • Give timed elements a data-start value so local animation time matches the clip.
  • Use finite animation-duration and animation-iteration-count because the negative-delay fallback cannot represent unbounded duration in environments without WAAPI-backed CSS animations.
  • Prefer animation-fill-mode: both so seeked states hold before and after active motion.
  • Avoid wall-clock JavaScript, hover-triggered state, and class toggles that depend on user events.

The adapter discovers elements with computed animation-name, seeks their browser Animation handles when available, and falls back to pausing with negative animation-delay.

Basic Pattern

\x3Cdiv
  id="pulse-ring"
  class="clip pulse-ring"
  data-start="0"
  data-duration="4"
  data-track-index="2"
>\x3C/div>

\x3Cstyle>
  .pulse-ring {
    width: 280px;
    height: 280px;
    border: 4px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation-name: pulse-ring;
    animation-duration: 1200ms;
    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
    animation-iteration-count: 3;
    animation-fill-mode: both;
  }

  @keyframes pulse-ring {
    from {
      opacity: 0;
      transform: scale(0.82);
    }
    35% {
      opacity: 1;
    }
    to {
      opacity: 0;
      transform: scale(1.18);
    }
  }
\x3C/style>

Stagger Pattern

Use CSS custom properties to avoid duplicating keyframes:

\x3Cdiv class="clip dots" data-start="1" data-duration="3" data-track-index="3">
  \x3Cspan style="--i: 0">\x3C/span>
  \x3Cspan style="--i: 1">\x3C/span>
  \x3Cspan style="--i: 2">\x3C/span>
\x3C/div>

\x3Cstyle>
  .dots span {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 50%;
    background: currentColor;
    animation: dot-pop 900ms ease-out both;
    animation-delay: calc(var(--i) * 120ms);
  }

  @keyframes dot-pop {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.75);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
\x3C/style>

Good Uses

  • Decorative loops with a known repeat count.
  • Mask, glow, shimmer, grain, and subtle parallax layers.
  • Simple one-element entrances where a full JS timeline would be excessive.

Avoid

  • Infinite CSS animations unless you have verified the browser exposes seekable WAAPI-backed CSS animation handles. Prefer a finite iteration count covering the visible duration.
  • Animating layout properties like top, left, width, or height when transforms work.
  • Relying on hover, focus, scroll, or media queries to trigger render-critical motion.
  • Changing animation classes after startup unless another deterministic timeline controls that change.

Validation

After editing CSS animation compositions:

npx hyperframes lint
npx hyperframes validate

Credits And References

安全使用建议
Treat this as an incomplete review: the sandbox failed before metadata.json or artifact files could be inspected, so reinstall only after a successful artifact review confirms the skill's actual instructions and files.
能力评估
Purpose & Capability
No purpose or capability mismatch was identified from available evidence; artifact inspection was blocked by local command execution failure.
Instruction Scope
No unsafe instruction-scope evidence was available for review.
Install Mechanism
No install-mechanism risk was identified from available evidence.
Credentials
No environment access or proportionality issue was identified from available evidence.
Persistence & Privilege
No persistence or privilege issue was identified from available evidence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install css-animations
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /css-animations 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of css-animations skill. - Introduces CSS animation adapter patterns for HyperFrames, enabling deterministic seeking of CSS keyframes. - Documents adapter requirements, usage contract, and best practices for integrating CSS animations with HyperFrames. - Provides example patterns, including basic and staggered animations using data attributes and custom properties. - Clarifies recommended and discouraged animation approaches for compatibility with deterministic rendering. - Includes validation steps and references for further learning.
元数据
Slug css-animations
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Css Animations 是什么?

CSS animation adapter patterns for HyperFrames. Use when authoring CSS keyframes, animation-delay based timing, animation-fill-mode, animation-play-state, or... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。

如何安装 Css Animations?

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

Css Animations 是免费的吗?

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

Css Animations 支持哪些平台?

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

谁开发了 Css Animations?

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

💬 留言讨论