Skip to main content
skill CX Codex

ui-animation · travisjneuman — Claude Code skill for interface motion

The ui-animation Claude Code skill guides interface animation, from micro-interactions to page transitions. It applies to motion work on web and mobile screens.

MIT 304 installs ★ 114 updated 2026-11-10

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add travisjneuman/.claude --skill ui-animation -a claude-code
Open on GitHub

What ui-animation does

The skill helps choose motion timing and easing for interface elements. It covers animation principles alongside patterns for micro-interactions, loading states, and page transitions.

More focused material lives in separate reference files on performance, CSS and JavaScript animation, accessibility, mobile UI, and design-system tokens. These files sit in references/ next to SKILL.md; a full toolkit install uses ~/.claude/skills/ui-animation/ as the folder path.

What it helps with

  • choose transition timing for an interface element
  • select easing for an element entering or leaving the screen
  • design a micro-interaction or loading state
  • account for animation accessibility and performance

Example prompts for the agent

  • Design a micro-interaction for the form submission button.
  • Add a page transition with suitable timing and easing.
  • Review the loading animation for accessibility concerns.

How to install ui-animation

1Skills CLI (Vercel)

npx skills add travisjneuman/.claude --skill ui-animation -a claude-code

2Manually: put the files in place

~/.claude/skills/ui-animation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/ui-animation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about ui-animation

How do I install ui-animation in Claude Code?

Run npx skills add travisjneuman/.claude --skill ui-animation -a claude-code. The skill file is at ~/.claude/skills/ui-animation/SKILL.md.

What does ui-animation do?

It guides UI motion design, covering animation principles, timing, easing, micro-interactions, loading states, and page transitions.

What topics do the ui-animation references cover?

Separate files cover CSS and JavaScript animation, performance, accessibility, mobile interfaces, and design-system integration.

Source text

SKILL.md · MIT
---
name: ui-animation
description: Motion design and animation for user interfaces. Use when creating micro-interactions, page transitions, loading states, or any UI animation across web and mobile platforms.
---

# UI Animation & Motion Design

Comprehensive guide for creating purposeful, performant animations in user interfaces.

## Animation Principles

### The 12 Principles of Animation (Applied to UI)

| Principle            | UI Application                        |
| -------------------- | ------------------------------------- |
| **Timing**           | Duration reflects importance/distance |
| **Easing**           | Natural acceleration/deceleration     |
| **Anticipation**     | Visual preparation for action         |
| **Follow-through**   | Momentum continues after stop         |
| **Secondary Action** | Supporting elements respond           |
| **Staging**          | Draw attention to key element         |
| **Squash & Stretch** | Bouncy, playful interactions          |
| **Exaggeration**     | Emphasize important feedback          |
| **Arc**              | Natural curved motion paths           |
| **Overlap**          | Elements move at different rates      |
| **Solid Drawing**    | Maintain consistent 3D space          |
| **Appeal**           | Engaging, delightful motion           |

### Why Animate?

```
FUNCTIONAL PURPOSES:
✓ Guide attention to important changes
✓ Show relationships between elements
✓ Provide feedback for actions
✓ Communicate system status
✓ Ease cognitive load
✓ Create spatial orientation

NOT FOR:
✗ Pure decoration
✗ Showing off skills
✗ Making things "feel modern"
✗ Distracting from content
```

---

## Timing & Duration

### Duration Guidelines

```
INSTANT (0-100ms):
└─→ Button state changes
└─→ Toggle switches
└─→ Micro-feedback

FAST (100-200ms):
└─→ Hover effects
└─→ Simple fades
└─→ Small movements

STANDARD (200-300ms):
└─→ Most UI transitions
└─→ Modal open/close
└─→ Dropdown menus

SLOW (300-500ms):
└─→ Complex transitions
└─→ Page transitions
└─→ Large element movement

DELIBERATE (500ms+):
└─→ Hero animations
└─→ Skeleton loading
└─→ Onboarding sequences
```

### Distance-Based Timing

```
Rule: Longer distance = Longer duration

Small (< 100px):   150-200ms
Medium (100-300px): 200-300ms
Large (300-500px):  300-400ms
Full screen:        400-500ms

Formula:
duration = baseTime + (distance × factor)
```

---

## Easing Functions

### Standard Easings

```
LINEAR
├────────────────────────────┤
Constant speed. Rarely natural.
Use: Progress bars, clock hands

EASE-OUT (Deceleration)
├═══════════────────────────┤
Fast start, slow end.
Use: Elements entering the screen

EASE-IN (Acceleration)
├────────────────═══════════┤
Slow start, fast end.
Use: Elements leaving the screen

EASE-IN-OUT (S-curve)
├────═══════════════────────┤
Slow start and end, fast middle.
Use: On-screen transitions

EASE-OUT-BACK (Overshoot)
├═══════════────────────╗───┤
Overshoots, settles back.
Use: Playful entrances, bounces
```

### CSS Easing Values

```css
/* Built-in keywords */
linear: cubic-bezier(0, 0, 1, 1)
ease: cubic-bezier(0.25, 0.1, 0.25, 1)
ease-in: cubic-bezier(0.42, 0, 1, 1)
ease-out: cubic-bezier(0, 0, 0.58, 1)
ease-in-out: cubic-bezier(0.42, 0, 0.58, 1)

/* Material Design standard */
standard: cubic-bezier(0.4, 0, 0.2, 1)
decelerate: cubic-bezier(0, 0, 0.2, 1)
accelerate: cubic-bezier(0.4, 0, 1, 1)

/* Custom: Snappy */
snappy: cubic-bezier(0.5, 0, 0, 1)

/* Custom: Bouncy */
bouncy: cubic-bezier(0.68, -0.55, 0.27, 1.55)

/* Spring-like (use JS libraries) */
spring: { stiffness: 300, damping: 20 }
```

### When to Use Each

| Scenario           | Easing        | Why                            |
| ------------------ | ------------- | ------------------------------ |
| Element entering   | ease-out      | Arrives energetically, settles |
| Element leaving    | ease-in       | Gathers momentum to exit       |
| On-screen change   | ease-in-out   | Smooth state change            |
| Attention grabbing | bounce/spring | Playful, noticeable            |
| Background/subtle  | ease-out      | Unobtrusive                    |

---

## Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this `SKILL.md` (in the full toolkit install, `~/.claude/skills/ui-animation/`).

| Topic | File | Covers |
| --- | --- | --- |
| Animation Patterns | [`references/animation-patterns.md`](references/animation-patterns.md) | Micro-interactions; Loading States; Page Transitions; List Animations |
| Performance | [`references/performance.md`](references/performance.md) | GPU-Accelerated Properties; Performance Guidelines; FLIP Technique |
| CSS Animation Techniques | [`references/css-animation-techniques.md`](references/css-animation-techniques.md) | Keyframe Animation; Transition; Animation Shorthand |
| JavaScript Animation Libraries | [`references/javascript-animation-libraries.md`](references/javascript-animation-libraries.md) | Comparison; Framer Motion (React); GSAP |
| Accessibility | [`references/accessibility.md`](references/accessibility.md) | Respecting User Preferences; Safe Animation Practices; WCAG Guidelines |
| Mobile Considerations | [`references/mobile-considerations.md`](references/mobile-considerations.md) | Touch Feedback; Platform Conventions |
| Design System Integration | [`references/design-system-integration.md`](references/design-system-integration.md) | Animation Tokens |
| Best Practices | [`references/best-practices.md`](references/best-practices.md) | DO:; DON'T: |
| Animation Checklist | [`references/animation-checklist.md`](references/animation-checklist.md) | Pre-Implementation; Implementation; Quality Check |

© travisjneuman · MIT · travisjneuman/.claude

Similar skills

All skills for Frontend and UI →

ui-animation by other authors comes first.

ui-animation mblode This skill designs, reviews and measures interface motion, from springs and gestures to scroll effects. Use it when implementing or diagnosing UI animation. CX Codex +1 11,100installs ux-friction dylantarre ux-friction — a skill for Claude Code, Cursor and other IDEs that identifies animations blocking user input, causing confusion, or delaying tasks. Checks timing, anticipation cues, and state feedback against animation principles. CX Codex +1 551installs animation-designer daffy0208 animation-designer — a skill that hands your agent ready-made web animation patterns: page transitions, component reveals, parallax and micro-interactions. CX Codex +1 1,900installs animation-principles iart-ai animation-principles calculates timing, cubic-bezier curves, and stagger offsets for UI transitions. Solves stiff or robotic movement with physics-based motion rules. CX Codex +1 6,200installs animation-performance emilkowalski animation-performance — a skill for Claude Code that keeps web animations within the frame budget. It diagnoses causes of jank and frame drops, suggesting replacements for resource-heavy properties with composite-only ones. CX Codex +1 93,400installs elegance-sophistication dylantarre elegance-sophistication is a Claude Code skill that guides restrained UI motion, with gentle transitions and strict easing for luxury web experiences. CX Codex +1 660installs 12-principles-of-animation raphael-salaja 12-principles-of-animation audits web animation code against Disney motion principles. Flags timing, physics, and easing flaws with precise file and line findings. CX Codex +1 2,200installs

From the same set117

The whole set →
finance finance — a skill with formulas and templates for DCF, LBO, M&A and statement analysis. Useful when the agent builds a model or works out multiples. CX Codex +1 383installs career-path-planner career-path-planner — a skill for career planning: skills audit, gap analysis, a development plan and milestone tracking. Useful when changing role or industry. CX Codex +1 347installs supply-chain-optimizer supply-chain-optimizer — a skill that hands your agent ready templates for supply chain mapping, inventory math, vendor scoring and demand forecasting. Useful when you need an EOQ figure or a supplier matrix. CX Codex +1 342installs audio-production The audio-production skill for Claude Code guides recording, mixing, mastering, and sound design for music, podcasts, and video. CX Codex +1 328installs macos-native The macos-native Claude Code skill guides native macOS app development with AppKit, Catalyst, and system APIs. It activates for Mac apps, menu bar utilities, system extensions, and macOS-specific features. CX Codex +1 298installs health-wellness health-wellness is a Claude Code skill that brings together corporate frameworks for employee wellness programs, workplace ergonomics, safety metrics, and healthcare plan design. CX Codex +1 281installs database-expert The database-expert Claude Code skill covers database schema design, query tuning, and administration. It activates for work with PostgreSQL, MongoDB, and Redis. CX Codex +1 255installs generic-react-ux-designer generic-react-ux-designer — a skill for designing React interfaces: interaction patterns, accessibility, forms, micro-interactions with Framer Motion. CX Codex +1 253installs

Project sponsors

Companies that keep this analytics open