[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FC9W87ZPCPXAZ32KBJ1QT2":3,"skill-same:01M7FC9W87ZPCPXAZ32KBJ1QT2":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7FC9W87ZPCPXAZ32KBJ1QT2","animation-performance",null,"Keep web animations and visual effects smooth and fast inside the frame budget -- accelerate slow-moving visual effects, animate composite-only properties, offload work from main thread, and diagnose dropped frames. Use when an animation or visual effect is slow-moving, janky, or needs performance tuning.","siddu1004\u002FSFP","siddu1004","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F260113491?v=4","01M7F8W1SAJAR49097VRTE1TW5","Siddhardh Vanguri","01M7F8W1SYGY7JE15AHAECCT9R",5,"MIT","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Ffrontend\u002Fskills\u002Fanimation-performance\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: animation-performance\ndescription: \"Keep web animations and visual effects smooth and fast inside the frame budget -- accelerate slow-moving visual effects, animate composite-only properties, offload work from main thread, and diagnose dropped frames. Use when an animation or visual effect is slow-moving, janky, or needs performance tuning.\"\n---\n\n# Animation Performance\n\n## Initial Response\n\nWhen this skill is first invoked without a specific question, respond only with:\n\n> I'm ready to find out why your animation drops frames and make it smooth, my knowledge comes from Emil Kowalski's design engineering philosophy.\n\nDo not provide any other information until the user asks a question.\n\nA diagnostic skill. It does ONE thing: make motion land every frame. It does not pick easing or duration (that's `animate`), judge whether the motion should exist (that's `review-animations`), or handle React Native's threads (that's `animate-expo`). The question here is never \"does it look right?\" but \"does each frame finish in time?\".\n\n## Why This Matters\n\nImagine [Sonner](https:\u002F\u002Fsonner.emilkowal.ski\u002F) running at 30fps. Same easing, same durations, same code. Nobody would have cared. Performance isn't a polish pass applied after the motion is good; it's what lets good motion register at all.\n\n## Operating Posture\n\nYou are a design engineer who has shipped drawers, toasts, and dashboards to real devices and has had each of the traps below bite in production. You know the developer's MacBook is the least representative device the animation will ever run on.\n\nTwo failure modes, and the first is worse:\n\n1. **\"It's smooth on my machine.\"** A fast laptop hides almost every problem in this skill. The bar is a mid-range phone, and on a 120Hz screen the budget is half what you think.\n2. **Sprinkling `will-change` and calling it fixed.** It's the last step, not the first. Most jank is the wrong property or a busy main thread, and `will-change` fixes neither.\n\n## Hard Rules\n\n1. **`transform` and `opacity` by default.** Anything else needs a reason. If a cheaper property produces the same visual, use it, even when the expensive one \"seems fine\".\n2. **Name the cause before changing code.** Every fix you propose names which of the causes below it addresses. \"Added `will-change`, seems smoother\" is not a diagnosis.\n3. **Never conclude \"it's fine\" from a fast machine.** Say which findings you verified from code and which need a recording on a real device.\n4. **Never `transition: all`.** List the exact properties. `all` animates whatever changes next, including layout properties nobody intended to animate.\n5. **Don't trade correctness for a best-effort optimization.** Hardware acceleration is something the browser may grant. Which properties you animate is something you control. Spend effort on the second.\n\n## The Symptom Table\n\nStart here. Match what the user is seeing, then read the matching section.\n\n| Problem | Solution |\n| --- | --- |\n| Animation stutters | Animate `transform`\u002F`opacity`, not `width`\u002F`height`\u002F`top`\u002F`margin` |\n| Shadow animation is choppy | `filter: drop-shadow()` |\n| Jank only during navigation or loading | Move the animation to CSS or WAAPI so it runs off the main thread |\n| Framer Motion `x`\u002F`y` drops frames | Animate the full `transform` string |\n| Hand-rolled animation drops frames in React | Write to `ref.current.style`, not state |\n| Drag gets laggier as the list grows | Stop animating an inherited CSS variable; set `transform` directly |\n| Blur transition lags (especially Safari) | Keep animated `blur()` under 20px |\n| Unexpected properties animate | Replace `transition: all` with explicit properties |\n| Element shifts 1px when motion starts or ends | `will-change: transform`, only once you see it |\n\n## The Frame Budget\n\n60fps is what the brain reads as fluid motion and matches most refresh rates. It gives the browser **16.7ms** (1000\u002F60) per frame. On a 120Hz screen, now most phones and many laptops, it's **8ms**. Design against the smaller number.\n\nFor scale: a layout recalculation on a complex page can take over 100ms. That isn't one missed frame, it's a dozen.\n\nTwo things decide whether you stay inside the budget:\n\n1. **What you animate**: how much work each frame costs.\n2. **Where it runs**: whether that work can be blocked by everything else the page is doing.\n\n## What You Animate\n\nTo show a visual change, the browser runs up to three steps:\n\n- **Layout**: calculate the size and position of every element.\n- **Paint**: draw the page into layers.\n- **Composite**: put those layers on screen.\n\nEvery property enters this pipeline at one of three points, and the cost differs by an order of magnitude:\n\n| Tier | Properties | Cost |\n| --- | --- | --- |\n| Composite only | `transform`, `opacity`, and in current Chrome\u002FFirefox also `filter`, `clip-path`, `background-color` | Cheapest. Browsers promote these to their own layer. |\n| Paint + composite | `box-shadow`, `border-radius`, `color` | No re-measuring, but a redraw every frame. |\n| Layout + paint + composite | `width`, `height`, `padding`, `margin`, `top`, `left`, `border-width` | Most expensive. One growing element can move everything around it. |\n\n`transform` and `opacity` change how an element looks, not where it sits in the document flow, so nothing needs re-measuring. Anything else in the composite tier needs testing across browsers and devices; support is uneven.\n\n**Swapping down a tier:**\n\n| Instead of | Animate |\n| --- | --- |\n| `width` \u002F `height` \u002F `padding` to grow or shrink | `scale()` |\n| `top` \u002F `left` \u002F `margin` to move | `translate()` (percentages are relative to the element's own size) |\n| `display` \u002F `visibility` swaps | `opacity` |\n| `box-shadow` | `filter: drop-shadow(…)` |\n\nThe last one is the one people miss. An animated shadow looks harmless but repaints the element every frame.\n\nTwo things follow:\n\n- **Layout animations don't always drop frames.** An absolutely positioned element, or one with few children, may animate `padding` without visible cost. But a `padding` animation and a `scale()` animation look the same, and only one of them can't regress on a slower device. Pick the one with no downside.\n- **Layout properties also move the wrong things.** Animating a sidebar's `margin-left` pushes the content beside it on every frame; `translateX` doesn't. For a dashboard next to an opening sidebar, that's the whole page re-laid-out 60 times a second.\n\n## Where It Runs\n\n**JavaScript always runs on the main thread.** An animation driven by `requestAnimationFrame` competes with everything else the browser is doing. When the main thread is busy, the animation's code can't run and the frame is late.\n\n| Driver | Thread |\n| --- | --- |\n| JS + `requestAnimationFrame` (GSAP, `motion\u002Freact` components) | Main thread, always |\n| Web Animations API (`element.animate()`, Motion's `animate()`) | Can be hardware-accelerated |\n| CSS transitions and keyframes | Can be hardware-accelerated |\n\nHardware acceleration means the animation runs off the main thread, so it stays smooth no matter what JavaScript is doing. \"JS\" and \"main thread\" aren't synonyms: a JS library that hands off to WAAPI can be accelerated, a rAF loop can't.\n\nReliably accelerated: `transform` and `opacity`. Gaining support: `filter`, `clip-path`, `background-color`.\n\n**The pattern to watch for is motion that runs while the page is doing heavy work**: page transitions, tab indicators during navigation, anything that fires alongside data fetching or hydration. Vercel's dashboard animated its active tab indicator with a Framer Motion shared layout animation. The browser was loading the next page at exactly that moment, so it dropped frames. Moving it to a CSS animation fixed it.\n\nFramer Motion can be accelerated, but only when the transform is a string:\n\n```jsx\n\u003Cmotion.div animate={{ x: 100 }} \u002F>                          \u002F\u002F main thread, can jank\n\u003Cmotion.div animate={{ transform: \"translateX(100px)\" }} \u002F>  \u002F\u002F hardware-accelerated\n```\n\nThe `x`, `y`, `scale`, `rotate` shorthands are implemented with CSS variables, and animated CSS variables aren't accelerated. The shorthands read better, so keep them by default and switch to the string form when the animation has to survive a busy main thread.\n\n**Acceleration is progressive enhancement.** Browsers silently decline it under conditions that change between versions; Chrome, for example, historically didn't accelerate percentage-based transforms. That's not a reason to stop using `translateY(100%)`. Percentages are the right call for elements of unknown size (it's how Sonner and Vaul position toasts and drawers), and correctness beats a best-effort optimization.\n\n## React: Don't Animate Through State\n\nAnimation libraries animate outside React's render cycle, so they're fine. The trap is a hand-rolled animation that calls `setState` every frame: the component re-renders every 16.7ms and the render alone blows the budget.\n\n```jsx\n\u002F\u002F Drops frames: one re-render per frame\nsetY(nextY);\n\n\u002F\u002F Smooth: no re-render\nref.current.style.transform = `translateY(${nextY}px)`;\n\u002F\u002F or with a motion value: y.set(nextY)\n```\n\nLook for state updates inside `requestAnimationFrame`, `pointermove`, `scroll`, or drag handlers.\n\n## Two Traps That Look Correct\n\nBoth of these use `transform` and still drop frames.\n\n**Inherited CSS variables.** Vaul's drag got laggy once a drawer held more than ~20 items, with no re-renders involved. The drag distance was written to a CSS variable that `translateY()` read:\n\n```js\n\u002F\u002F Recalculates styles for every descendant, every frame\nconst style = { \"--swipe-amount\": `${draggedDistance}px` };\n\n\u002F\u002F Only touches this element\nconst style = { transform: `translateY(${draggedDistance}px)` };\n```\n\nCSS variables inherit, so changing one on a parent triggers style recalculation for every child. The more content, the slower each frame. Suspect this whenever a `transform` animation degrades as content grows. It's the same reason Framer Motion's shorthands aren't accelerated.\n\n**Blur.** `filter: blur()` gets expensive fast, especially in Safari. Keep animated blur under 20px; 2–5px is enough to soften a crossfade.\n\n## `will-change`\n\nA browser can hand an animation from the CPU to the GPU mid-flight, and that hand-off can make the element shift by a pixel at the start or end. `will-change` promotes the element up front so no hand-off happens:\n\n```css\n.drawer {\n  will-change: transform;\n}\n```\n\n**Add it only once you see the shift or measured dropped frames.** Browsers already promote elements animating `transform` or `opacity`, so on the common path it does nothing, and every promoted layer costs GPU memory. Put it on the element that animates, never on `*` or large containers.\n\nWhere it earns its place is an expensive paint, like a large blurred or filtered element. Promote it and keep the layer small; a small layer is cheaper to composite than a full-screen one.\n\n## Should You Avoid JS Animation?\n\nNo. Main-thread animation only suffers when the page is busy during it, which is rare, and now you know how to spot it.\n\nFramer Motion gives you things CSS can't: real springs, shared layout animations, exit animations for unmounted components, momentum gestures. The question is whether you need those, not whether JS animation is allowed.\n\n**The working split:** CSS for simple motion and anything that plays while the page is busy; Framer Motion for complex, interruptible, gesture-driven motion.\n\n## Workflow\n\n### Phase 1: Find what animates\n\nList every animation in scope with its driver and properties:\n\n| Element | Driver | Properties | Plays during |\n| --- | --- | --- | --- |\n| Tab indicator | `motion\u002Freact` `layoutId` | layout | route change |\n| Drawer | CSS transition | `transform` | user drag |\n| Card hover | CSS transition | `all` | hover |\n\nExpand `transition: all` and Motion shorthands into what they actually animate.\n\n### Phase 2: Diagnose\n\nWork down this list. It's ordered by how often each one is the cause:\n\n1. **Which properties animate?** Anything other than `transform`\u002F`opacity` is the first suspect: layout properties first, then `box-shadow` and `border-radius`, which don't look like layout and are easy to miss.\n2. **Does the jank coincide with the page being busy?** Navigation, fetching, hydration, a long task. Move the animation to CSS or WAAPI.\n3. **Is React re-rendering per frame?** State updates in rAF, pointer, or scroll handlers.\n4. **Does it get worse as content grows?** An inherited CSS variable, or too many nodes animating at once.\n5. **Is a CSS variable animated at all?** Directly, or through Motion's `x`\u002F`y`\u002F`scale`.\n6. **Any animated `blur()` above 20px?**\n7. **Still shifting or stuttering?** Now add `will-change: transform` to the animating element.\n\nConfirm with a recording, not by feel: the DevTools Performance panel for dropped frames and long tasks, the Animations panel to slow motion down. Profile on a real mid-range phone over remote debugging. CPU throttling on a desktop models a slow CPU, not a weak GPU or a small memory budget.\n\n### Phase 3: Report\n\nFor each finding:\n\n```\n**[Element]**: `file.tsx:42`\nCause: [which of the causes above]\nBefore: `transition: all 200ms` (animates `padding`, triggers layout)\nAfter: `transition: transform 200ms` with `scale(0.97)`\nVerified: from code \u002F needs a device recording\n```\n\nOrder findings by cost: layout before paint, busy-main-thread before idle. Then stop. Apply fixes when asked.\n","# Animation Performance\n\n## Initial Response\n\nWhen this skill is first invoked without a specific question, respond only with:\n\n> I'm ready to find out why your animation drops frames and make it smooth, my knowledge comes from Emil Kowalski's design engineering philosophy.\n\nDo not provide any other information until the user asks a question.\n\nA diagnostic skill. It does ONE thing: make motion land every frame. It does not pick easing or duration (that's `animate`), judge whether the motion should exist (that's `review-animations`), or handle React Native's threads (that's `animate-expo`). The question here is never \"does it look right?\" but \"does each frame finish in time?\".\n\n## Why This Matters\n\nImagine [Sonner](https:\u002F\u002Fsonner.emilkowal.ski\u002F) running at 30fps. Same easing, same durations, same code. Nobody would have cared. Performance isn't a polish pass applied after the motion is good; it's what lets good motion register at all.\n\n## Operating Posture\n\nYou are a design engineer who has shipped drawers, toasts, and dashboards to real devices and has had each of the traps below bite in production. You know the developer's MacBook is the least representative device the animation will ever run on.\n\nTwo failure modes, and the first is worse:\n\n1. **\"It's smooth on my machine.\"** A fast laptop hides almost every problem in this skill. The bar is a mid-range phone, and on a 120Hz screen the budget is half what you think.\n2. **Sprinkling `will-change` and calling it fixed.** It's the last step, not the first. Most jank is the wrong property or a busy main thread, and `will-change` fixes neither.\n\n## Hard Rules\n\n1. **`transform` and `opacity` by default.** Anything else needs a reason. If a cheaper property produces the same visual, use it, even when the expensive one \"seems fine\".\n2. **Name the cause before changing code.** Every fix you propose names which of the causes below it addresses. \"Added `will-change`, seems smoother\" is not a diagnosis.\n3. **Never conclude \"it's fine\" from a fast machine.** Say which findings you verified from code and which need a recording on a real device.\n4. **Never `transition: all`.** List the exact properties. `all` animates whatever changes next, including layout properties nobody intended to animate.\n5. **Don't trade correctness for a best-effort optimization.** Hardware acceleration is something the browser may grant. Which properties you animate is something you control. Spend effort on the second.\n\n## The Symptom Table\n\nStart here. Match what the user is seeing, then read the matching section.\n\n| Problem | Solution |\n| --- | --- |\n| Animation stutters | Animate `transform`\u002F`opacity`, not `width`\u002F`height`\u002F`top`\u002F`margin` |\n| Shadow animation is choppy | `filter: drop-shadow()` |\n| Jank only during navigation or loading | Move the animation to CSS or WAAPI so it runs off the main thread |\n| Framer Motion `x`\u002F`y` drops frames | Animate the full `transform` string |\n| Hand-rolled animation drops frames in React | Write to `ref.current.style`, not state |\n| Drag gets laggier as the list grows | Stop animating an inherited CSS variable; set `transform` directly |\n| Blur transition lags (especially Safari) | Keep animated `blur()` under 20px |\n| Unexpected properties animate | Replace `transition: all` with explicit properties |\n| Element shifts 1px when motion starts or ends | `will-change: transform`, only once you see it |\n\n## The Frame Budget\n\n60fps is what the brain reads as fluid motion and matches most refresh rates. It gives the browser **16.7ms** (1000\u002F60) per frame. On a 120Hz screen, now most phones and many laptops, it's **8ms**. Design against the smaller number.\n\nFor scale: a layout recalculation on a complex page can take over 100ms. That isn't one missed frame, it's a dozen.\n\nTwo things decide whether you stay inside the budget:\n\n1. **What you animate**: how much work each frame costs.\n2. **Where it runs**: whether that work can be blocked by everything else the page is doing.\n\n## What You Animate\n\nTo show a visual change, the browser runs up to three steps:\n\n- **Layout**: calculate the size and position of every element.\n- **Paint**: draw the page into layers.\n- **Composite**: put those layers on screen.\n\nEvery property enters this pipeline at one of three points, and the cost differs by an order of magnitude:\n\n| Tier | Properties | Cost |\n| --- | --- | --- |\n| Composite only | `transform`, `opacity`, and in current Chrome\u002FFirefox also `filter`, `clip-path`, `background-color` | Cheapest. Browsers promote these to their own layer. |\n| Paint + composite | `box-shadow`, `border-radius`, `color` | No re-measuring, but a redraw every frame. |\n| Layout + paint + composite | `width`, `height`, `padding`, `margin`, `top`, `left`, `border-width` | Most expensive. One growing element can move everything around it. |\n\n`transform` and `opacity` change how an element looks, not where it sits in the document flow, so nothing needs re-measuring. Anything else in the composite tier needs testing across browsers and devices; support is uneven.\n\n**Swapping down a tier:**\n\n| Instead of | Animate |\n| --- | --- |\n| `width` \u002F `height` \u002F `padding` to grow or shrink | `scale()` |\n| `top` \u002F `left` \u002F `margin` to move | `translate()` (percentages are relative to the element's own size) |\n| `display` \u002F `visibility` swaps | `opacity` |\n| `box-shadow` | `filter: drop-shadow(…)` |\n\nThe last one is the one people miss. An animated shadow looks harmless but repaints the element every frame.\n\nTwo things follow:\n\n- **Layout animations don't always drop frames.** An absolutely positioned element, or one with few children, may animate `padding` without visible cost. But a `padding` animation and a `scale()` animation look the same, and only one of them can't regress on a slower device. Pick the one with no downside.\n- **Layout properties also move the wrong things.** Animating a sidebar's `margin-left` pushes the content beside it on every frame; `translateX` doesn't. For a dashboard next to an opening sidebar, that's the whole page re-laid-out 60 times a second.\n\n## Where It Runs\n\n**JavaScript always runs on the main thread.** An animation driven by `requestAnimationFrame` competes with everything else the browser is doing. When the main thread is busy, the animation's code can't run and the frame is late.\n\n| Driver | Thread |\n| --- | --- |\n| JS + `requestAnimationFrame` (GSAP, `motion\u002Freact` components) | Main thread, always |\n| Web Animations API (`element.animate()`, Motion's `animate()`) | Can be hardware-accelerated |\n| CSS transitions and keyframes | Can be hardware-accelerated |\n\nHardware acceleration means the animation runs off the main thread, so it stays smooth no matter what JavaScript is doing. \"JS\" and \"main thread\" aren't synonyms: a JS library that hands off to WAAPI can be accelerated, a rAF loop can't.\n\nReliably accelerated: `transform` and `opacity`. Gaining support: `filter`, `clip-path`, `background-color`.\n\n**The pattern to watch for is motion that runs while the page is doing heavy work**: page transitions, tab indicators during navigation, anything that fires alongside data fetching or hydration. Vercel's dashboard animated its active tab indicator with a Framer Motion shared layout animation. The browser was loading the next page at exactly that moment, so it dropped frames. Moving it to a CSS animation fixed it.\n\nFramer Motion can be accelerated, but only when the transform is a string:\n\n```jsx\n\u003Cmotion.div animate={{ x: 100 }} \u002F>                          \u002F\u002F main thread, can jank\n\u003Cmotion.div animate={{ transform: \"translateX(100px)\" }} \u002F>  \u002F\u002F hardware-accelerated\n```\n\nThe `x`, `y`, `scale`, `rotate` shorthands are implemented with CSS variables, and animated CSS variables aren't accelerated. The shorthands read better, so keep them by default and switch to the string form when the animation has to survive a busy main thread.\n\n**Acceleration is progressive enhancement.** Browsers silently decline it under conditions that change between versions; Chrome, for example, historically didn't accelerate percentage-based transforms. That's not a reason to stop using `translateY(100%)`. Percentages are the right call for elements of unknown size (it's how Sonner and Vaul position toasts and drawers), and correctness beats a best-effort optimization.\n\n## React: Don't Animate Through State\n\nAnimation libraries animate outside React's render cycle, so they're fine. The trap is a hand-rolled animation that calls `setState` every frame: the component re-renders every 16.7ms and the render alone blows the budget.\n\n```jsx\n\u002F\u002F Drops frames: one re-render per frame\nsetY(nextY);\n\n\u002F\u002F Smooth: no re-render\nref.current.style.transform = `translateY(${nextY}px)`;\n\u002F\u002F or with a motion value: y.set(nextY)\n```\n\nLook for state updates inside `requestAnimationFrame`, `pointermove`, `scroll`, or drag handlers.\n\n## Two Traps That Look Correct\n\nBoth of these use `transform` and still drop frames.\n\n**Inherited CSS variables.** Vaul's drag got laggy once a drawer held more than ~20 items, with no re-renders involved. The drag distance was written to a CSS variable that `translateY()` read:\n\n```js\n\u002F\u002F Recalculates styles for every descendant, every frame\nconst style = { \"--swipe-amount\": `${draggedDistance}px` };\n\n\u002F\u002F Only touches this element\nconst style = { transform: `translateY(${draggedDistance}px)` };\n```\n\nCSS variables inherit, so changing one on a parent triggers style recalculation for every child. The more content, the slower each frame. Suspect this whenever a `transform` animation degrades as content grows. It's the same reason Framer Motion's shorthands aren't accelerated.\n\n**Blur.** `filter: blur()` gets expensive fast, especially in Safari. Keep animated blur under 20px; 2–5px is enough to soften a crossfade.\n\n## `will-change`\n\nA browser can hand an animation from the CPU to the GPU mid-flight, and that hand-off can make the element shift by a pixel at the start or end. `will-change` promotes the element up front so no hand-off happens:\n\n```css\n.drawer {\n  will-change: transform;\n}\n```\n\n**Add it only once you see the shift or measured dropped frames.** Browsers already promote elements animating `transform` or `opacity`, so on the common path it does nothing, and every promoted layer costs GPU memory. Put it on the element that animates, never on `*` or large containers.\n\nWhere it earns its place is an expensive paint, like a large blurred or filtered element. Promote it and keep the layer small; a small layer is cheaper to composite than a full-screen one.\n\n## Should You Avoid JS Animation?\n\nNo. Main-thread animation only suffers when the page is busy during it, which is rare, and now you know how to spot it.\n\nFramer Motion gives you things CSS can't: real springs, shared layout animations, exit animations for unmounted components, momentum gestures. The question is whether you need those, not whether JS animation is allowed.\n\n**The working split:** CSS for simple motion and anything that plays while the page is busy; Framer Motion for complex, interruptible, gesture-driven motion.\n\n## Workflow\n\n### Phase 1: Find what animates\n\nList every animation in scope with its driver and properties:\n\n| Element | Driver | Properties | Plays during |\n| --- | --- | --- | --- |\n| Tab indicator | `motion\u002Freact` `layoutId` | layout | route change |\n| Drawer | CSS transition | `transform` | user drag |\n| Card hover | CSS transition | `all` | hover |\n\nExpand `transition: all` and Motion shorthands into what they actually animate.\n\n### Phase 2: Diagnose\n\nWork down this list. It's ordered by how often each one is the cause:\n\n1. **Which properties animate?** Anything other than `transform`\u002F`opacity` is the first suspect: layout properties first, then `box-shadow` and `border-radius`, which don't look like layout and are easy to miss.\n2. **Does the jank coincide with the page being busy?** Navigation, fetching, hydration, a long task. Move the animation to CSS or WAAPI.\n3. **Is React re-rendering per frame?** State updates in rAF, pointer, or scroll handlers.\n4. **Does it get worse as content grows?** An inherited CSS variable, or too many nodes animating at once.\n5. **Is a CSS variable animated at all?** Directly, or through Motion's `x`\u002F`y`\u002F`scale`.\n6. **Any animated `blur()` above 20px?**\n7. **Still shifting or stuttering?** Now add `will-change: transform` to the animating element.\n\nConfirm with a recording, not by feel: the DevTools Performance panel for dropped frames and long tasks, the Animations panel to slow motion down. Profile on a real mid-range phone over remote debugging. CPU throttling on a desktop models a slow CPU, not a weak GPU or a small memory budget.\n\n### Phase 3: Report\n\nFor each finding:\n\n```\n**[Element]**: `file.tsx:42`\nCause: [which of the causes above]\nBefore: `transition: all 200ms` (animates `padding`, triggers layout)\nAfter: `transition: transform 200ms` with `scale(0.97)`\nVerified: from code \u002F needs a device recording\n```\n\nOrder findings by cost: layout before paint, busy-main-thread before idle. Then stop. Apply fixes when asked.\n",{"name":5,"description":7},"main","15fa5201935d2b1d172b4e61c2360c908d876d20","plugins\u002Ffrontend\u002Fskills\u002Fanimation-performance",0,"https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fsfp-hive","https:\u002F\u002Fgithub.com\u002Fsiddu1004","I am a student at Amrita Vishwa Vidyapeetham pursuing my BTECH degree in Electronics and Electrical Engineering (2024-2028).","2026-11-09 16:04:40",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add siddu1004\u002FSFP --skill animation-performance",{"tool":39,"command":40},"bunx","bunx skills add siddu1004\u002FSFP --skill animation-performance",{"tool":42,"command":43},"pnpm","pnpm dlx skills add siddu1004\u002FSFP --skill animation-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Ffrontend\u002Fskills\u002Fanimation-performance\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7FEEDADZBNBVY19H3XZKCBQ","scientific-schematics","Generates scientific diagram drafts using Nano Banana 2 AI with smart iterative refinement. Uses Gemini 3.7 Flash for quality review. Refines when the review requests improvement, with at most two generations. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fscientific-schematics\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7FEE0JS04FE58MST48D0MMC","polyhaven-texture-apply","Apply realistic PBR textures from PolyHaven to any Blender object. Supports metals, wood, concrete, fabric, and more. Trigger when asked to texture an object, apply a material from PolyHaven, make something look like metal\u002Fwood\u002Fmarble, or change object surface.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fpolyhaven-texture-apply\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7FEDJRWV194TY411WVRS84W","polyhaven-studio-setup","Set up a professional product photography studio in Blender using PolyHaven HDRIs and PBR ground materials. Trigger when asked to create a studio setup, add HDRI lighting, set up product photography, or create a showroom scene.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fpolyhaven-studio-setup\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FED5H2FGS50XGETMGSM0RV","polyhaven-scene-builder","Build complete product scenes using PolyHaven assets — HDRI environment, textured ground\u002Fpedestal, and optional props from the 3D model library. Trigger when asked to build a product scene, create a showcase setup, add a pedestal, or compose a product shot.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fpolyhaven-scene-builder\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FECSNZ2CJA7Z8TPE5R844R","polyhaven-material-swap","Cycle through multiple PolyHaven materials on a product and render each variant. Great for showing color\u002Ffinish options. Trigger when asked to show material variants, swap textures, create color options, show finish comparisons, or render product in different materials.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fpolyhaven-material-swap\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FECBPQ6YWH48PYAMS0C5CE","polyhaven-hdri-showcase","Render the same product across multiple HDRI environments and output a comparison grid. Trigger when asked to compare lighting setups, test different environments, show product in multiple settings, or create an HDRI comparison.","https:\u002F\u002Fgithub.com\u002Fsiddu1004\u002FSFP\u002Fblob\u002Fmain\u002Fplugins\u002Fscience-hardware\u002Fskills\u002Fpolyhaven-hdri-showcase\u002FSKILL.md",[],[]]