# makepad-2.0-animation

Guides coding agents on building transitions, hover states, and loops in Makepad 2.0. Useful for Rust UI styling with shader variables.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · ★ 751
- Author: ZhangHanDong
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-animation/SKILL.md
- Updated: 2026-04-07
- HTML: https://affpapa.org/en/nevibecode/skills/makepad-20-animation

## What it does

This skill equips your coding agent with syntax and architectural patterns for the Makepad 2.0 Animator subsystem. It focuses on driving `instance()` shader variables across designated tracks, such as `hover`, `focus`, and `time`. Playback modes cover forward transitions, instant snaps, and repeating loops.

The guide outlines state transition definitions, target property assignments, and keyframed changes using `timeline()`. It also details easing options from `Linear` to `InBounce`. Adding an animator directly to unsupported components like `Label` or `Slider` produces no error and fails silently. Because of this, the skill prompts the agent to place those widgets inside a `View` parent.

Only `instance()` values are animatable. Variables marked as `uniform()` do not work with this system. Interactive surfaces with colored backgrounds also require `new_batch: true`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-animation -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/makepad-2.0-animation/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/makepad-2.0-animation/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-animation -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/makepad-2.0-animation/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-animation -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/makepad-2.0-animation/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ZhangHanDong/makepad-skills makepad-2.0-animation
```

2. **Manually: put the files in place**
- File: `.github/skills/makepad-2.0-animation/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-animation -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ZhangHanDong/makepad-skills --path skills/makepad-2.0-animation
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/makepad-2.0-animation/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ZhangHanDong/makepad-skills --skill makepad-2.0-animation -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ZhangHanDong/makepad-skills/tree/HEAD/skills/makepad-2.0-animation/SKILL.md

## When to use it
- build hover state transitions using Forward and Snap playback
- create continuous rotation loops for loading indicators
- animate unsupported widgets by nesting them inside a View
- interpolate shader colors using instance variables and easing curves

## Example prompts
- Add a hover color transition to this Makepad 2.0 RoundedView button
- Create an infinite loading spinner using Makepad Animator and Loop
- How do I animate a Label widget in Makepad 2.0 without errors?

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

From the same set: [zhanghandong/makepad-skills](https://affpapa.org/en/nevibecode/by/zhanghandong/makepad-skills.md) — 14 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
