Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.
.claude/skills/lingxling-fixing-motion-performance/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 39% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 2094% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 2497% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 1101% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 4% | 0% |
Fix animation performance issues.
/fixing-motion-performanceApply these constraints to any UI animation work in this conversation.
/fixing-motion-performance <file>Review the file against all rules below and report:
Do not migrate animation libraries unless explicitly requested. Apply rules within the existing stack.
Reference these guidelines when:
| priority | category | impact | |----------|----------|--------| | 1 | never patterns | critical | | 2 | choose the mechanism | critical | | 3 | measurement | high | | 4 | scroll | high | | 5 | paint | medium-high | | 6 | layers | medium | | 7 | blur and filters | medium | | 8 | view transitions | low | | 9 | tool boundaries | critical |
css/* layout thrashing: animate transform instead of width */ /* before */ .panel { transition: width 0.3s; } /* after */ .panel { transition: transform 0.3s; } /* scroll-linked: use scroll-timeline instead of JS */ /* before */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500) /* after */ .reveal { animation: fade-in linear; animation-timeline: view(); }
js// measurement: batch reads before writes (FLIP) // before — layout thrash el.style.left = el.getBoundingClientRect().left + 10 + 'px'; // after — measure once, animate via transform const first = el.getBoundingClientRect(); el.classList.add('moved'); const last = el.getBoundingClientRect(); el.style.transform = `translateX(${first.left - last.left}px)`; requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 16,551 | 21,603 | +31% | 1 | 1 | 0% | 2,988 | 4,160 | +39% | 0 | 0 | — |
case-02 | pass→pass | 53,169 | 22,676 | -57% | 1 | 1 | 0% | 7,421 | 4,511 | -39% | 0 | 0 | — |
case-03 | pass→pass | 16,272 | 15,093 | -7% | 1 | 1 | 0% | 2,443 | 3,485 | +43% | 0 | 0 | — |
case-04 | pass→fail | 19,186 | 13,668 | -29% | 1 | 1 | 0% | 2,908 | 3,786 | +30% | 0 | 0 | — |
case-05 | fail→pass | 7,702 | 17,188 | +123% | 1 | 1 | 0% | 186 | 4,080 | +2094% | 0 | 0 | — |
case-06 | pass→pass | 21,230 | 14,676 | -31% | 1 | 1 | 0% | 3,258 | 3,313 | +2% | 0 | 0 | — |
case-07 | fail→fail | 13,703 | 8,740 | -36% | 1 | 1 | 0% | 2,375 | 2,538 | +7% | 0 | 0 | — |
case-08 | pass→pass | 11,106 | 8,437 | -24% | 1 | 1 | 0% | 1,491 | 2,604 | +75% | 0 | 0 | — |
case-09 | fail→pass | 4,905 | 12,524 | +155% | 1 | 1 | 0% | 149 | 3,870 | +2497% | 0 | 0 | — |
case-10 | fail→pass | 6,716 | 14,136 | +110% | 1 | 1 | 0% | 278 | 3,339 | +1101% | 0 | 0 | — |
case-11 | fail→fail | 22,743 | 16,656 | -27% | 1 | 1 | 0% | 3,263 | 3,828 | +17% | 0 | 0 | — |
case-12 | pass→pass | 19,522 | 15,221 | -22% | 1 | 1 | 0% | 2,711 | 3,443 | +27% | 0 | 0 | — |
case-13 | pass→pass | 17,763 | 17,966 | +1% | 1 | 1 | 0% | 2,505 | 4,257 | +70% | 0 | 0 | — |
case-14 | pass→pass | 32,255 | 9,327 | -71% | 1 | 1 | 0% | 2,412 | 3,032 | +26% | 0 | 0 | — |
case-15 | fail→fail | 4,923 | 19,189 | +290% | 1 | 1 | 0% | 246 | 4,688 | +1806% | 0 | 0 | — |
case-16 | pass→pass | 10,968 | 9,400 | -14% | 1 | 1 | 0% | 1,293 | 2,514 | +94% | 0 | 0 | — |
case-17 | fail→pass | 23,828 | 26,675 | +12% | 1 | 1 | 0% | 3,449 | 3,573 | +4% | 0 | 0 | — |
case-18 | pass→pass | 8,444 | 5,629 | -33% | 1 | 1 | 0% | 1,447 | 2,250 | +55% | 0 | 0 | — |
case-19 | fail→pass | 23,881 | 13,720 | -43% | 1 | 1 | 0% | 3,480 | 3,598 | +3% | 0 | 0 | — |
case-20 | pass→pass | 6,074 | 6,804 | +12% | 1 | 1 | 0% | 1,247 | 2,230 | +79% | 0 | 0 | — |
case-21 | pass→pass | 15,263 | 19,523 | +28% | 1 | 1 | 0% | 2,434 | 3,598 | +48% | 0 | 0 | — |
case-22 | fail→pass | 4,967 | 20,472 | +312% | 1 | 1 | 0% | 225 | 5,598 | +2388% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 17 counted toward the lift figure. The other 5 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +27 percentage points is the difference between those two pass rates over the 17 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.