fixing-motion-performance

Diagnose and review CSS and JavaScript animation performance issues across UI interactions.

10.2k|477|Updated Jan 7, 2026
Ready to run
npx skills add https://github.com/ibelick/ui-skills --skill fixing-motion-performance-ibelick
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: fixing-motion-performance
Source: https://github.com/ibelick/ui-skills/tree/main/skills/fixing-motion-performance
Command: npx skills add https://github.com/ibelick/ui-skills --skill fixing-motion-performance-ibelick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It addresses stuttering animations, janky transitions, and layout thrashing in user interfaces by identifying costly animation patterns and suggesting code-level fixes. ## Core Features & Use Cases - Performance review: Inspect CSS or JavaScript animation code and report violations with the exact snippet, why it matters, and a concrete fix. - Implementation guidance: Apply rules for layout measurement, scroll-linked motion, paint-heavy properties, compositor layers, blur, and view transitions within the existing animation system. - Use case: Review a component with a janky scroll-linked reveal and replace scroll polling with a suitable timeline approach when available. ## Quick Start Review the attached component for animation performance violations and suggest code-level fixes without changing its animation library.

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 stuttering CSS animations?▼

Fix stuttering CSS animations by identifying layout or paint work in continuous motion, then prefer transform and opacity. Keep paint-triggering effects limited to small, isolated elements.

How do I review JavaScript animation performance?▼

Review JavaScript animation performance by inspecting the file for rule violations and reporting the exact snippet, why it matters, and a concrete code-level fix. Apply findings within the existing animation system unless migration is requested.

Should I use Scroll Timelines or scroll event handlers for scroll-linked animation?▼

Scroll Timelines and View Timelines are preferred for scroll-linked motion when available, rather than polling scroll position or updating from scroll events. Use IntersectionObserver for visibility and pause or stop off-screen animations.

Why do animations become janky when measuring elements?▼

Repeated layout reads interleaved with DOM writes can force repeated layout work during animation. Batch reads before writes, measure once, and animate the resulting change with transform or opacity where appropriate.

When should I use blur or will-change in animations?▼

Keep blur animation at 8px or less and use it only for short, one-time effects; do not animate it continuously or across large surfaces. Apply will-change temporarily and surgically, and avoid many or large promoted layers.