Animation
/install animation
Animation — CSS/SVG Animation Code Generator
Generate production-ready CSS keyframe animations, SVG motion paths, transitions, and easing functions from the command line. Animations are stored locally in JSONL format for reuse, chaining, and export.
Prerequisites
- Python 3.6+
- Bash 4+
Data Storage
All animation records are persisted to ~/.animation/data.jsonl. Each record is a JSON object with fields like id, name, type, code, created_at, etc.
Commands
Run via: bash scripts/script.sh \x3Ccommand> [options]
| Command | Description |
|---|---|
create |
Create a new CSS or SVG animation definition |
keyframe |
Generate a @keyframes block with named steps |
transition |
Generate a CSS transition shorthand snippet |
timing |
Show or set timing-function values for an animation |
easing |
List built-in easing curves or define a custom cubic-bezier |
sequence |
Build a multi-step animation sequence from existing entries |
loop |
Set loop/iteration count for an animation |
chain |
Chain two or more animations with configurable delays |
export |
Export one or all animations as a .css / .svg file |
preview |
Generate an HTML preview page for a given animation |
list |
List all stored animations |
help |
Show usage information |
version |
Print the tool version |
Usage Examples
# Create a fade-in animation
bash scripts/script.sh create --name fadeIn --type css --property opacity --from 0 --to 1 --duration 0.5s
# Generate keyframes
bash scripts/script.sh keyframe --name bounce --steps '0%:translateY(0);50%:translateY(-20px);100%:translateY(0)'
# Create a transition
bash scripts/script.sh transition --property transform --duration 0.3s --easing ease-in-out
# List all saved animations
bash scripts/script.sh list
# Preview an animation in HTML
bash scripts/script.sh preview --name fadeIn
# Export animations to a CSS file
bash scripts/script.sh export --name fadeIn --format css --output animations.css
# Chain two animations
bash scripts/script.sh chain --names fadeIn,bounce --delay 0.2s
# Show available easing functions
bash scripts/script.sh easing --list
# Set loop count
bash scripts/script.sh loop --name bounce --count infinite
# Build a multi-step sequence
bash scripts/script.sh sequence --names fadeIn,bounce --mode sequential
Output Format
All commands output to stdout. Structured data is returned as JSON. Generated code is printed as raw CSS or SVG text suitable for copy-paste or piping.
Notes
- Animation IDs are auto-generated UUIDs.
- The
previewcommand creates a self-contained HTML file that can be opened in any browser. chainandsequencereference animations by name; they must exist in the data store.export --format svgwraps animations in an\x3Csvg>+\x3Canimate>/\x3CanimateTransform>structure.
Powered by BytesAgain | bytesagain.com | [email protected]
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install animation - 安装完成后,直接呼叫该 Skill 的名称或使用
/animation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Animation 是什么?
Generate CSS and SVG animation code snippets using bash and Python. Use when building UI animations, keyframes, or transition effects. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 335 次。
如何安装 Animation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install animation」即可一键安装,无需额外配置。
Animation 是免费的吗?
是的,Animation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Animation 支持哪些平台?
Animation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Animation?
由 BytesAgain2(@ckchzh)开发并维护,当前版本 v1.0.0。