animate
Original:🇺🇸 English
Translated
Add or fix motion. Honors MOTION_INTENSITY and loads the stack reference if opted in. Invoke when the user asks for animate on their UI, or mentions 'animate' alongside design / UI / frontend work.
15installs
Sourceeduclopez/ui-craft
Added on
NPX Install
npx skill4agent add educlopez/ui-craft animateTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →<!-- AUTO-GENERATED. Do not edit here. Source: skills/ui-craft/ + commands/*.md. Regenerate with `node scripts/sync-harnesses.mjs`. -->
Context: this sub-skill is one lens of the broader skill. If the skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.
ui-craftui-craftAdd or fix animations in the target the user described. Load the skill.
ui-craftStep 1 — Decision Ladder: run the Decision Ladder from first. Anything that fails it gets removed, not improved.
references/animation.mdStep 2 — Pick the library:
- If user opted into a stack during Discovery → read . Use the matching section (Motion, GSAP, or Three.js). Never mix libraries on the same property.
references/stack.md - Otherwise → CSS transitions / /
@keyframesonly.animation-timeline: view()
Step 3 — Apply motion budget:
| Element | Budget |
|---|---|
| Color/opacity | 100-150ms |
| Small UI (tooltips, dropdowns) | 150-200ms |
| Medium UI (modals, panels) | 200-300ms |
| Large UI (page transitions, drawers) | 300-400ms |
Exit ≈ 75% of entrance duration (shorter, same — or a flatter tail like for a softer exit). Never on UI (see ). is a safe spring-like default.
ease-outcubic-bezier(0.4, 0, 1, 1)ease-inreferences/animation.mdcubic-bezier(0.22, 1, 0.36, 1)Step 4 — Multi-stage sequences → read . Stagger 30-80ms, not 200ms.
references/animation-orchestration.mdStep 5 — Respect the knobs:
- → hover states only, no entrances, no scroll-triggered.
MOTION_INTENSITY ≤ 3 - → standard entrances + hover, one scroll reveal max per section.
MOTION_INTENSITY 4-7 - → scroll-linked, page transitions, magnetic cursor OK (still honor reduced-motion).
MOTION_INTENSITY 8+
Output: edit code directly. After each file, print the Review Format table. Flag any animation you removed and why.