fixing-motion-performance

Enforce transform and opacity motion rules to reduce UI animation jank.

Updated Apr 18, 2026
One-click install
npx skills add https://github.com/rattamnoon/our-third-story --skill fixing-motion-performance-rattamnoon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fixing-motion-performance
Source: https://github.com/rattamnoon/our-third-story/tree/main/.cursor/skills/fixing-motion-performance
Command: npx skills add https://github.com/rattamnoon/our-third-story --skill fixing-motion-performance-rattamnoon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduces animation jank by enforcing motion-performance rules on UI animations, delivering smoother interactions.

Core Features & Use Cases

  • Prefer transform and opacity for motion to keep layout fast.
  • Batch DOM reads before writes and avoid read-after-write layout thrashing.
  • Applicable to CSS, WAAPI, Framer Motion, and React-based transitions in web apps.

Quick Start

Apply the motion-performance constraints to the current UI animation project and review results.

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 React animation jank and improve frame rate?

Fix React animation jank by enforcing motion-performance rules that prefer transform and opacity for motion, which keeps layout calculations fast and improves frame rate. This approach reduces UI stuttering across web apps.

Why does my Framer Motion animation cause layout thrashing?

Framer Motion animation causes layout thrashing when DOM reads and writes interleave. Prevent this by batching DOM reads before writes to avoid read-after-write cycles, ensuring smoother animation rendering.

Does this approach work with CSS, WAAPI, and React transitions?

Yes, this motion-performance approach works with CSS, WAAPI, Framer Motion, and React transitions. It applies transform and opacity-based motion rules across these web animation technologies to reduce jank.

What is the best way to optimize scroll-linked motion in web apps?

The best way to optimize scroll-linked motion is to use transform and opacity-based motion while adhering to performance constraints that avoid layout thrashing, ensuring smooth frame rates during scroll events.

When should I avoid layout-triggering properties for UI animations?

Avoid layout-triggering properties for UI animations whenever motion is required, preferring transform and opacity instead to keep layout fast, batch DOM reads before writes, and prevent frame rate drops.