Animation skill · Web

Loading states

Skeletons, progress and thinking indicators that feel fast.

Give this skill to your AI agent

Run this in your project. Claude Code picks it up from .claude/skills; for other agents, paste the file into their rules.

mkdir -p .claude/skills/loading-states && curl -fsSL https://kitesmotion.com/skills/loading-states/SKILL.md -o .claude/skills/loading-states/SKILL.md
Download SKILL.md

Waiting feels shorter when the interface shows progress and keeps its shape.

Choose by wait time

Expected waitShow
Under 300msNothing; avoid flashes
300ms to 2sSkeleton or inline spinner
2s to 10sProgress bar or step labels
Over 10sProgress with time estimate and a way to cancel

Delay spinners by about 300ms so fast responses never flash a loader, and keep them visible at least 400ms once shown.

Skeletons

  • Match the real layout exactly so nothing jumps when content arrives.
  • Use a soft shimmer that moves left to right every 1.2-1.6s.
  • Cross-fade skeleton to content over 200ms.

Progress inside the control

  • Show progress in the button or row that started the task (fill the button background, label changes to "Saving…").
  • When done, morph to a check mark, then return to normal after about 1.5s.

Optimistic UI

  • Apply the change instantly, sync in the background, and roll back with a small shake and message if it fails.

AI thinking indicators

  • Use a calm, looping animation (pulsing dots, shimmering label, small orb) and update the label with real steps ("Searching…", "Writing…").

Rules

  • Never block the whole page for a partial load.
  • Announce status with role="status" or aria-live="polite".
  • Reduced motion: keep spinners and progress, drop shimmer and pulses.

More skills