fixing-motion-performance

Audit and refactor UI animation performance across CSS, WAAPI, Motion, rAF, and GSAP.

5|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/marchatton/agent-skills --skill fixing-motion-performance-marchatton
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fixing-motion-performance
Source: https://github.com/marchatton/agent-skills/tree/main/.agents/skills/04-develop/01-ui-skills-dot-com/fixing-motion-performance
Command: npx skills add https://github.com/marchatton/agent-skills --skill fixing-motion-performance-marchatton

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses and resolves issues that cause UI animations to perform poorly, leading to janky or unresponsive user experiences.

Core Features & Use Cases

  • Performance Audits: Identifies and reports animation performance violations.
  • Refactoring Guidance: Provides concrete code-level suggestions for fixing performance bottlenecks.
  • Use Case: When a new UI animation feels sluggish, use this Skill to audit it, pinpoint the exact lines of code causing the slowdown, and get clear instructions on how to optimize it without changing the animation's core library.

Quick Start

Use the fixing-motion-performance skill to audit the animation code in the file 'src/components/Button.jsx'.

Frequently Asked Questions about fixing-motion-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix janky UI animations and improve rendering performance?

Fix janky UI animations by auditing code for performance bottlenecks across CSS, WAAPI, GSAP, and rAF, then applying concrete refactoring rules for paint, layers, blur, and scroll-linked motion to optimize rendering performance.

What causes sluggish scroll-linked motion and how do I optimize it?

Sluggish scroll-linked motion is caused by improper scroll handling and layer management. Optimize it by enforcing specific animation patterns and mechanism choices that minimize paint and layout thrashing during interactions.

Does this animation optimization approach work with existing GSAP and CSS stacks?

Yes, this animation optimization approach works within existing stacks. It provides code-level suggestions to pinpoint and resolve slowdowns without requiring you to change your core animation library.

What is the best way to audit UI animation performance violations?

The best way to audit UI animation performance violations is to evaluate your animation code against strict rules covering mechanism choice, measurement, scroll handling, paint, layers, blur, and view transitions to identify bottlenecks.

Why does my WAAPI transition feel unresponsive during user interactions?

Your WAAPI transition feels unresponsive due to suboptimal layer usage or heavy paint operations during interactions. Auditing the animation mechanism and enforcing proper layer and paint handling resolves this performance issue.