Skip to main content
skill CX Codex

attention-management — Claude Code skill: what it does, how to install

Skill for directing user focus with Disney's animation principles when UI elements fight for attention. It fixes visual hierarchy across buttons and primary content.

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

What attention-management does

When decorative elements distract from primary buttons, animation timing is broken. This skill guides coding agents through animation principles like staging and timing. Motion enforces visual hierarchy.

The central rule is sequencing motion rather than running it in parallel. Primary content moves quickly and first. Secondary elements trigger with delays, while backgrounds remain subtle. The checklist restricts active motion to 1–2 simultaneous animations.

The skill includes a CSS pattern staggering hero titles, subtitles, and buttons with 100ms and 200ms offsets. If hiding animation breaks page clarity, the layout itself needs work. Motion cannot fix a broken baseline layout.

What it helps with

  • direct user attention toward key call-to-action buttons
  • eliminate visual competition between simultaneous animations
  • structure element appearance using CSS stagger delays
  • tone down distracting background motion
  • align UI animation order with Disney animation principles

Example prompts for the agent

  • Review the landing page animations: users keep overlooking the checkout button.
  • Stagger the entrance animations for the hero section so the headline appears before the CTA.
  • Refactor these CSS transitions using Disney principles so only one UI element moves at a time.

How to install attention-management

1Skills CLI (Vercel)

npx skills add dylantarre/animation-principles --skill attention-management -a claude-code

2Manually: put the files in place

~/.claude/skills/attention-management/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/attention-management/

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

Questions about attention-management

How do I install attention-management in Claude Code?

Run npx skills add dylantarre/animation-principles --skill attention-management -a claude-code. The skill file installs to ~/.claude/skills/attention-management/SKILL.md.

What does the attention-management skill do?

It helps your AI agent diagnose visual hierarchy issues caused by motion and applies Disney's animation principles to solve them. The skill ensures primary content grabs focus before secondary or background elements.

How many animations can run at the same time according to the skill?

The troubleshooting checklist recommends limiting simultaneous motion to 1–2 animations. Any additional moving elements should be sequenced or given delayed start times.

Source text

SKILL.md · MIT
---
name: attention-management
description: Use when wrong elements get attention, important content is missed, or visual hierarchy is broken by animation
---

# Attention Management

Direct user focus correctly using Disney's principles.

## Problem Indicators
- Users miss important content
- Decorative elements steal focus
- CTAs don't stand out
- Users look at wrong things first
- Information hierarchy is unclear

## Diagnosis by Principle

### Staging
**Issue**: Multiple elements compete for attention
**Fix**: One thing moves at a time. Animate the most important element; keep others still.

### Timing
**Issue**: Everything animates at same speed
**Fix**: Primary content: faster animation. Secondary: slower or delayed. Speed implies importance.

### Exaggeration
**Issue**: Uniform motion across hierarchy
**Fix**: Important elements get more dramatic animation. Background elements get subtle motion.

### Anticipation
**Issue**: No buildup directs eyes
**Fix**: Use anticipation to guide attention. A small movement can draw eyes before the main action.

### Appeal
**Issue**: Wrong elements are visually interesting
**Fix**: Make important elements the most visually appealing. Animation should enhance hierarchy, not fight it.

## Quick Fixes

1. **One animation at a time** - Sequence, don't parallelize
2. **Stagger by importance** - Most important animates first
3. **Reduce decorative motion** - Background should be calm
4. **Increase CTA animation contrast** - Stands out from surroundings
5. **Use motion to guide reading order** - Top-to-bottom, left-to-right

## Troubleshooting Checklist

- [ ] What do users look at first? (Eye tracking or testing)
- [ ] Does animation sequence match importance hierarchy?
- [ ] Are decorative animations subtle enough?
- [ ] Does primary CTA have strongest motion?
- [ ] Count simultaneous animations (should be 1-2)
- [ ] Test: Hide animation—does hierarchy still work?
- [ ] Is motion guiding or distracting?
- [ ] Does stillness create emphasis where needed?

## Code Pattern

```css
/* Stagger by importance */
.hero-title {
  animation: fadeInUp 400ms ease-out;
}

.hero-subtitle {
  animation: fadeInUp 400ms ease-out 100ms backwards;
}

.hero-cta {
  animation: fadeInUp 400ms ease-out 200ms backwards,
             pulse 2s ease-in-out 1s infinite;
}

/* De-emphasize background */
.background-element {
  animation: subtleDrift 20s linear infinite;
  opacity: 0.3;
}
```

## Hierarchy Through Motion

| Priority | Animation Style |
|----------|----------------|
| Primary | Fast, prominent, potentially looping |
| Secondary | Medium speed, one-time |
| Tertiary | Slow, subtle, or static |
| Background | Very slow or no animation |

© dylantarre · MIT · dylantarre/animation-principles

Similar skills

Everything for Frontend and UI →

From the same set142

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor