[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72FZ1VV66WJYWW1DVA614EV":3,"skill-same:01M72FZ1VV66WJYWW1DVA614EV":45},{"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":5,"forksCount":14,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M72FZ1VV66WJYWW1DVA614EV","gsap-performance",null,"Optimize GSAP animations for 60fps — transforms over layout properties, will-change, batching, render scheduling, scroll-trigger perf. Use ONLY when the project uses GSAP and the user reports jank or wants smoother animation performance. For other libraries use `framer-motion-animator`; for motion design principles (when\u002Fwhy to animate) use `animate`; for animation best-practice rules use `emilkowal-animations`.","ekasc\u002Fskills","ekasc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F81736292?v=4","01M72FS7QP8011YN2YG2FJEX0M","ekas","01M72FS7RS5E79Q423YAJZ6JM0",0,"MIT","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fgsap-performance\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gsap-performance\ndescription: Optimize GSAP animations for 60fps — transforms over layout properties, will-change, batching, render scheduling, scroll-trigger perf. Use ONLY when the project uses GSAP and the user reports jank or wants smoother animation performance. For other libraries use `framer-motion-animator`; for motion design principles (when\u002Fwhy to animate) use `animate`; for animation best-practice rules use `emilkowal-animations`.\nlicense: MIT\n---\n\n# GSAP Performance\n\n## When to Use This Skill\n\nApply when optimizing GSAP animations for smooth 60fps, reducing layout\u002Fpaint cost, or when the user asks about performance, jank, or best practices for fast animations.\n\n**Related skills:** Build animations with **gsap-core** (transforms, autoAlpha) and **gsap-timeline**; for ScrollTrigger performance see **gsap-scrolltrigger**.\n\n## Prefer Transform and Opacity\n\nAnimating **transform** (`x`, `y`, `scaleX`, `scaleY`, `rotation`, `rotationX`, `rotationY`, `skewX`, `skewY`) and **opacity** keeps work on the compositor and avoids layout and most paint. Avoid animating layout-heavy properties when a transform can achieve the same effect.\n\n- ✅ Prefer: **x**, **y**, **scale**, **rotation**, **opacity**.\n- ❌ Avoid when possible: **width**, **height**, **top**, **left**, **margin**, **padding** (they trigger layout and can cause jank).\n\nGSAP’s **x** and **y** use transforms (translate) by default; use them instead of **left**\u002F**top** for movement.\n\n## will-change\n\nUse **will-change** in CSS on elements that will animate. It hints the browser to promote the layer.\n\n```css\nwill-change: transform;\n```\n\n## Batch Reads and Writes\n\nGSAP batches updates internally. When mixing GSAP with direct DOM reads\u002Fwrites or layout-dependent code, avoid interleaving reads and writes in a way that causes repeated layout thrashing. Prefer doing all reads first, then all writes (or let GSAP handle the writes in one go).\n\n## Many Elements (Stagger, Lists)\n\n- Use **stagger** instead of many separate tweens with manual delays when the animation is the same; it’s more efficient.\n- For long lists, consider **virtualization** or animating only visible items; avoid creating hundreds of simultaneous tweens if it causes jank.\n- Reuse timelines where possible; avoid creating new timelines every frame.\n\n## Frequently updated properties (e.g. mouse followers)\n\nPrefer **gsap.quickTo()** for properties that are updated often (e.g. mouse-follower x\u002Fy). It reuses a single tween instead of creating new tweens on each update. \n\n```javascript\nlet xTo = gsap.quickTo(\"#id\", \"x\", { duration: 0.4, ease: \"power3\" }),\n    yTo = gsap.quickTo(\"#id\", \"y\", { duration: 0.4, ease: \"power3\" });\n\ndocument.querySelector(\"#container\").addEventListener(\"mousemove\", (e) => {\n  xTo(e.pageX);\n  yTo(e.pageY);\n});\n```\n\n## ScrollTrigger and Performance\n\n- **pin: true** promotes the pinned element; pin only what’s needed.\n- **scrub** with a small value (e.g. `scrub: 1`) can reduce work during scroll; test on low-end devices.\n- Call **ScrollTrigger.refresh()** only when layout actually changes (e.g. after content load), not on every resize; debounce when possible.\n\n## Reduce Simultaneous Work\n\n- Pause or kill off-screen or inactive animations when they’re not visible (e.g. when the user navigates away).\n- Avoid animating huge numbers of properties on many elements at once; simplify or sequence if needed.\n\n## Best practices\n\n- ✅ Animate **transform** and **opacity**; use **will-change** in CSS only on elements that animate.\n- ✅ Use **stagger** instead of many separate tweens with manual delays when the animation is the same.\n- ✅ Use **gsap.quickTo()** for frequently updated properties (e.g. mouse followers).\n- ✅ Clean up or kill off-screen animations; call **ScrollTrigger.refresh()** when layout changes, debounced when possible.\n\n## Do Not\n\n- ❌ Animate **width**\u002F **height**\u002F **top**\u002F **left** for movement when **x**\u002F **y**\u002F **scale** can achieve the same look.\n- ❌ Set **will-change** or **force3D** on every element “just in case”; use for elements that are actually animating.\n- ❌ Create hundreds of overlapping tweens or ScrollTriggers without testing on low-end devices.\n- ❌ Ignore cleanup; stray tweens and ScrollTriggers keep running and can hurt performance and correctness.\n","# GSAP Performance\n\n## When to Use This Skill\n\nApply when optimizing GSAP animations for smooth 60fps, reducing layout\u002Fpaint cost, or when the user asks about performance, jank, or best practices for fast animations.\n\n**Related skills:** Build animations with **gsap-core** (transforms, autoAlpha) and **gsap-timeline**; for ScrollTrigger performance see **gsap-scrolltrigger**.\n\n## Prefer Transform and Opacity\n\nAnimating **transform** (`x`, `y`, `scaleX`, `scaleY`, `rotation`, `rotationX`, `rotationY`, `skewX`, `skewY`) and **opacity** keeps work on the compositor and avoids layout and most paint. Avoid animating layout-heavy properties when a transform can achieve the same effect.\n\n- ✅ Prefer: **x**, **y**, **scale**, **rotation**, **opacity**.\n- ❌ Avoid when possible: **width**, **height**, **top**, **left**, **margin**, **padding** (they trigger layout and can cause jank).\n\nGSAP’s **x** and **y** use transforms (translate) by default; use them instead of **left**\u002F**top** for movement.\n\n## will-change\n\nUse **will-change** in CSS on elements that will animate. It hints the browser to promote the layer.\n\n```css\nwill-change: transform;\n```\n\n## Batch Reads and Writes\n\nGSAP batches updates internally. When mixing GSAP with direct DOM reads\u002Fwrites or layout-dependent code, avoid interleaving reads and writes in a way that causes repeated layout thrashing. Prefer doing all reads first, then all writes (or let GSAP handle the writes in one go).\n\n## Many Elements (Stagger, Lists)\n\n- Use **stagger** instead of many separate tweens with manual delays when the animation is the same; it’s more efficient.\n- For long lists, consider **virtualization** or animating only visible items; avoid creating hundreds of simultaneous tweens if it causes jank.\n- Reuse timelines where possible; avoid creating new timelines every frame.\n\n## Frequently updated properties (e.g. mouse followers)\n\nPrefer **gsap.quickTo()** for properties that are updated often (e.g. mouse-follower x\u002Fy). It reuses a single tween instead of creating new tweens on each update. \n\n```javascript\nlet xTo = gsap.quickTo(\"#id\", \"x\", { duration: 0.4, ease: \"power3\" }),\n    yTo = gsap.quickTo(\"#id\", \"y\", { duration: 0.4, ease: \"power3\" });\n\ndocument.querySelector(\"#container\").addEventListener(\"mousemove\", (e) => {\n  xTo(e.pageX);\n  yTo(e.pageY);\n});\n```\n\n## ScrollTrigger and Performance\n\n- **pin: true** promotes the pinned element; pin only what’s needed.\n- **scrub** with a small value (e.g. `scrub: 1`) can reduce work during scroll; test on low-end devices.\n- Call **ScrollTrigger.refresh()** only when layout actually changes (e.g. after content load), not on every resize; debounce when possible.\n\n## Reduce Simultaneous Work\n\n- Pause or kill off-screen or inactive animations when they’re not visible (e.g. when the user navigates away).\n- Avoid animating huge numbers of properties on many elements at once; simplify or sequence if needed.\n\n## Best practices\n\n- ✅ Animate **transform** and **opacity**; use **will-change** in CSS only on elements that animate.\n- ✅ Use **stagger** instead of many separate tweens with manual delays when the animation is the same.\n- ✅ Use **gsap.quickTo()** for frequently updated properties (e.g. mouse followers).\n- ✅ Clean up or kill off-screen animations; call **ScrollTrigger.refresh()** when layout changes, debounced when possible.\n\n## Do Not\n\n- ❌ Animate **width**\u002F **height**\u002F **top**\u002F **left** for movement when **x**\u002F **y**\u002F **scale** can achieve the same look.\n- ❌ Set **will-change** or **force3D** on every element “just in case”; use for elements that are actually animating.\n- ❌ Create hundreds of overlapping tweens or ScrollTriggers without testing on low-end devices.\n- ❌ Ignore cleanup; stray tweens and ScrollTriggers keep running and can hurt performance and correctness.\n",{"name":5,"license":15,"description":7},"main","bf609d39ca1cf5a6b9a482634fde3d638442659f","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills","https:\u002F\u002Fgithub.com\u002Fekasc","ekasc.dev","beep boop","2026-08-29 16:34:56",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ekasc\u002Fskills --skill gsap-performance",{"tool":37,"command":38},"bunx","bunx skills add ekasc\u002Fskills --skill gsap-performance",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ekasc\u002Fskills --skill gsap-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fgsap-performance\u002FSKILL.md",true,[],[46,53,60,67,76,83],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M72G5T5SATXXEQ3J7MWQKKRC","vercel-react-native-skills","React Native and Expo best practices for performant mobile apps — FlashList\u002FFlatList virtualization, native modules, Reanimated animations, image handling, Hermes. Use when building or optimizing a React Native \u002F Expo app. For web React\u002FNext use `vercel-react-best-practices`; for animation library choice use `framer-motion-animator` or `gsap-performance`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fvercel-react-native-skills\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M72G5NSRW9M33TBTZXVKVQ4R","vercel-react-best-practices","React and Next.js performance patterns from Vercel Engineering — server components, data fetching, bundle optimization, streaming, caching, image optimization. Use when writing, reviewing, or refactoring web React\u002FNext.js code for performance. For runtime profiling use `web-perf`; for code-level UI slowness fixes use `optimize`; for React Native use `vercel-react-native-skills`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M72G05D2VPFJ10M9GQPTF3EA","macos-design-guidelines","Apple Human Interface Guidelines for Mac. Use when building macOS apps with SwiftUI or AppKit, implementing menu bars, toolbars, window management, or keyboard shortcuts. Triggers on tasks involving Mac UI, desktop apps, or Mac Catalyst.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fmacos-design-guidelines\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":71,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M72FZ9J1SKS7TTJ9R06P99M4","hatch-pet","Create, repair, validate, preview, and package Codex-compatible animated pets and pet spritesheets from character art, screenshots, generated images, or visual references. Use when a user wants to hatch a Codex pet, create a custom animated pet, or build a built-in pet asset with an 8x9 atlas, transparent unused cells, row-by-row animation prompts, QA contact sheets, preview videos, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fhatch-pet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fhatch-pet\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},"01M72FYV883H58GZ0WHT3V21D7","golang-pro","Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST, optimizes Go application performance with pprof, and enforces idiomatic Go with generics, interfaces, and robust error handling. Use when building Go applications requiring concurrent programming, microservices architecture, or high-performance systems. Invoke for goroutines, channels, Go generics, gRPC integration, CLI tools, benchmarks, or table-driven testing.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fgolang-pro\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},"01M72FXC06T4HZ1WYHCY23E5NK","code-security-quality-audit","Strict security and code-quality audit + repair loop on source code. Find real vulnerabilities and quality issues, fix root causes, verify, pattern-search, repeat. Use when auditing code for security (auth, input handling, secrets, payments) or general code-quality issues. For UI\u002FUX quality use `audit`; for runtime perf use `web-perf`; for pre-build security review use `security-review`.","https:\u002F\u002Fgithub.com\u002Fekasc\u002Fskills\u002Fblob\u002Fmain\u002Fcode-security-quality-audit\u002FSKILL.md",[],[]]