New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Animation guide applying Disney's 12 principles to focus-drawing motion for badges, alerts, and banners.

skills.sh installs
592
GitHub stars
170
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers timing tables for badge pulses, notification dots, error shakes, urgent alerts, and promotional banners
  • Includes CSS and JavaScript patterns for pulse, glow, shake, and ring animations with cycle counts
  • Enforces a limit of one attention animation at a time, auto-stopping after 3-5 cycles or 10 seconds
  • Requires a static indicator under prefers-reduced-motion and an audio or haptic alternative for urgent alerts

Install

$ npx -y skills add dylantarre/animation-principles --skill attention-grabbers -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Attention-Grabbing Animations

Apply Disney's 12 principles to focus-drawing motion.

Principle Application

Squash & Stretch: Pulsing scale draws attention. 1.0 → 1.1 → 1.0 cycle catches peripheral vision.

Anticipation: Brief pause before attention animation. Let it build then release.

Staging: Position attention elements where users will see them. Corner badges, inline highlights.

Straight Ahead vs Pose-to-Pose: Design attention states: rest, active/pulsing, acknowledged.

Follow Through & Overlapping: Badge pulses, then count updates. Stagger the attention signals.

Slow In/Slow Out: Ease in/out on pulses. Smooth oscillation is less jarring than sharp bounces.

Arcs: Shake animations follow arc patterns. Left-right with slight vertical oscillation.

Secondary Action: Pulse + glow + color shift for maximum attention (use sparingly).

Timing:

  • Single attention grab: 300-500ms
  • Repeating pulse: 2000-3000ms cycle
  • Urgent pulse: 1000-1500ms cycle
  • Decay: Stop after 3-5 cycles or 10 seconds

Exaggeration: This is where exaggeration shines. Scale to 1.2, bright colors, bold motion.

Details

Repository
github.com/dylantarre/animation-principles
Categories
Animation & Motion, Design & UI/UX, Frontend & UI Code
First seen
Jun 3, 2026

More from dylantarre/animation-principles

All 144

Similar to Attention Grabbers

More Animation & Motion