fixing-motion-performance

Audit and fix CSS/JS animation performance issues in web apps.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/mohamed-g-shoaib/rootly --skill fixing-motion-performance-mohamed-g-shoaib
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fixing-motion-performance
Source: https://github.com/mohamed-g-shoaib/rootly/tree/main/.agents/skills/fixing-motion-performance
Command: npx skills add https://github.com/mohamed-g-shoaib/rootly --skill fixing-motion-performance-mohamed-g-shoaib

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams identify and remediate animation performance issues such as layout thrashing, excessive repaint, and scroll-linked motion stutter, delivering smoother user experiences.

Core Features & Use Cases

  • Audit: Inspect animation paths to detect layout reads/writes in the same frame.
  • Recommended fixes: Propose transforms/opacity-based motion, FLIP patterns, and batching reads before writes.
  • Use Case: Optimize a dashboard transition that currently jitters when expanding panels.

Quick Start

Run a quick audit on the current UI animation paths and apply the suggested fixes to a single component.

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 UI animation stutter and jank in web apps?

You can fix animation stutter by auditing layout, transitions, and scroll-linked motion paths to detect performance pitfalls. Eliminate jank by batching DOM reads before writes and applying transform and opacity-based motion instead of layout-triggering properties.

What causes scroll-linked motion stutter and layout thrashing in CSS and JavaScript?

Scroll-linked motion stutter and layout thrashing occur when JavaScript interleaves layout reads and writes within the same animation frame. Auditing these paths detects excessive repaints and synchronous reflows that cause UI jitter.

What is the best way to optimize a dashboard transition that jitters when expanding panels?

The best way to optimize a jittering dashboard transition is to audit the panel's animation path and apply the FLIP pattern. Replace layout-triggering CSS properties with transform and opacity-based motion to ensure smooth rendering.

Can I use the FLIP pattern and batching reads before writes to eliminate repaint issues?

Yes, using the FLIP pattern and batching layout reads before writes eliminates excessive repaint issues. This approach enforces animation performance best practices by preventing synchronous layout recalculations during UI transitions.

Does auditing animation performance work for both reusable UI components and full web apps?

Yes, auditing animation performance works across both reusable UI components and full web apps. The process detects layout thrashing and scroll-linked stutter in CSS and JavaScript, proposing code-level fixes that deliver smoother user experiences.