Skip to content
Kitbay
Skill

animation-performance

MITUpdated on Nov 9, 202655,996GitHub stars

A skill from Emil Kowalski's collection for finding why a web animation drops frames.

What the skill teaches

A skill from Emil Kowalski's collection for finding why a web animation drops frames. Its rules: animate transform and opacity by default, name a specific cause before changing anything, never judge performance from a fast machine alone, and never use a transition on all properties. It explains the frame budget at 60 and 120 hertz, which CSS properties cost layout, paint or only compositing, cheaper substitutes, which animation methods run off the main thread, React re-render traps, animated CSS variables, large blurs and when will-change is warranted. The agent lists every animation, works through seven checks in order of likelihood, and reports each finding with before and after code, applying fixes only on request.

Capabilities

  • List the properties each animation changes
  • Find the cause of dropped frames
  • Suggest cheaper properties to animate
  • Report fixes with before and after code