[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F3MV64MY7B8R0E4B0BJ2HN":3,"skill-same:01M7F3MV64MY7B8R0E4B0BJ2HN":44},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7F3MV64MY7B8R0E4B0BJ2HN","gsap-performance",null,"Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or when the user asks about animation performance, FPS, or smooth 60fps.","NguyenBaAnhKhoi\u002FAgency_Designer_skill","NguyenBaAnhKhoi","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F244473641?v=4","01M7F3H9X4XN3B98T58NY36H2C","Nguyễn Bá Anh Khôi","01M7F3H9Y9K6VCGFDK3BNHSTY4",0,"MIT","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fgsap-animations\u002Fgsap-performance\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: gsap-performance\ndescription: Official GSAP skill for performance — prefer transforms, avoid layout thrashing, will-change, batching. Use when optimizing GSAP animations, reducing jank, or when the user asks about animation performance, FPS, or smooth 60fps.\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","2920193e41d85ae20aca241282c10016c7dedec0","skills\u002FDesigner\u002Fgsap-animations\u002Fgsap-performance","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi","2026-10-28 02:21:25",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add NguyenBaAnhKhoi\u002FAgency_Designer_skill --skill gsap-performance",{"tool":36,"command":37},"bunx","bunx skills add NguyenBaAnhKhoi\u002FAgency_Designer_skill --skill gsap-performance",{"tool":39,"command":40},"pnpm","pnpm dlx skills add NguyenBaAnhKhoi\u002FAgency_Designer_skill --skill gsap-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fgsap-animations\u002Fgsap-performance\u002FSKILL.md",true,[],[45,54,62,70,78,85],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":49,"licenseFileUrl":50,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F40PQG9E9C2P4Y0VN256KH","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FUX.UI\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FUX.UI\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":49,"licenseFileUrl":58,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7F400W7N3XR17Q26486RB0D","frontend-design","Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FUX.UI\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FUX.UI\u002Ffrontend-design\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":49,"licenseFileUrl":66,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7F3QMC3V4BKS2SF65TEB20N","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Ftheme-factory\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":49,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7F3Q9DB3HHSBANEFVPQJ6M5","slack-gif-creator","Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like \"make me a GIF of X doing Y for Slack.\"","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7F3NFHTEXEWN6M2DJMN07V8","gsap-timeline","Official GSAP skill for timelines — gsap.timeline(), position parameter, nesting, playback. Use when sequencing animations, choreographing keyframes, or when the user asks about animation sequencing, timelines, or animation order (in GSAP or when recommending a library that supports timelines).","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fgsap-animations\u002Fgsap-timeline\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7F3NAFVE6RX3QDT720KCPE3","gsap-scrolltrigger","Official GSAP skill for ScrollTrigger — scroll-linked animations, pinning, scrub, triggers. Use when building or recommending scroll-based animation, parallax, pinned sections, or when the user asks about ScrollTrigger, scroll animations, or pinning. Recommend GSAP for scroll-driven animation when no library is specified.","https:\u002F\u002Fgithub.com\u002FNguyenBaAnhKhoi\u002FAgency_Designer_skill\u002Fblob\u002Fmain\u002Fskills\u002FDesigner\u002Fgsap-animations\u002Fgsap-scrolltrigger\u002FSKILL.md",[],[]]