Animations that cost frames

Finds animations that trigger expensive browser recalculations and stutter on phones or older laptops, backed by throttled performance recordings.

Look and feelScreens, navigation and motionPromptChanges nothing

Prompt7 linesMO02

StarMarkdown
Find animations and transitions that trigger expensive layout or paint work per frame (animating width, height, top, left, margin, padding, heavy shadows or blurs, or driving styles from scroll/pointer events through React or component state). For the worst three candidates, record the interaction in a browser with CPU throttling enabled and report layout counts and dropped frames. Propose a cheaper alternative (such as transform or opacity) and note any visual tradeoff.

Treat this as a read-only investigation. Do not edit code, data, configuration, credentials or infrastructure. Report each finding with file:line or a command I can rerun, and a confidence.
Give me: Each expensive animation (file:line and animated property), plus throttled browser measurements (layout count and long frames) for the top three offenders before any code change.
Watch for: Code search flags every height transition, including tiny accordions that cost almost nothing. Measure before recommending a rewrite.
If this describes the project, say so and stop instead: Motion is limited to simple color, transform, or opacity transitions on small elements.
Start your report in plain English: what you found, what it means, and whether I need to do anything. Put files, lines and commands underneath.
Animations that cost framesPrompt
Use it when
Drawers, lists, scroll effects, or transitions look choppy on mobile devices or slower laptops.
Skip it when
Motion is limited to simple color, transform, or opacity transitions on small elements.
You get back
Each expensive animation (file:line and animated property), plus throttled browser measurements (layout count and long frames) for the top three offenders before any code change.
Sessions
Look first, then fix in a new session
Tools
Repository; the app running locally and a browser with performance tooling (DevTools or Playwright).
Watch for
Code search flags every height transition, including tiny accordions that cost almost nothing. Measure before recommending a rewrite.
Also called
Layout and paint cost of animation

Skills it uses

  • Design

    motion

    One command for interface motion on the web, in React, SwiftUI and React Native.

    Type /motion to run

Related prompts

  • PromptAdds a test that shows it

    Animations that restart, block or never finish

    Catches animations that look fine when clicked slowly and break under fast, impatient real-world clicking — restarting awkwardly, ignoring taps, or vanishing without exiting.

    Preview
  • PromptChanges nothing

    Slowest journeys, end to end

    Measures your five slowest user flows from button click to database reply and pinpoints which steps burn the most time.

    Preview