[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79S4QN5MKZWTZX66NNHEJC3":3,"skill-same:01M79S4QN5MKZWTZX66NNHEJC3":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},"01M79S4QN5MKZWTZX66NNHEJC3","gsap-performance",null,"GSAP的官方性能技能——更喜欢转换，避免布局混乱，会改变，批处理。在优化GSAP动画、减少jank或用户询问动画性能、FPS或平滑60fps时使用。","zzz2929\u002Fskills-zh-CN","zzz2929","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F145306978?v=4","01M79S11YZNA13C4SZEN9M9QH1","zxyzzz","01M79S1204VZEHJSESQE300A6N",0,"MIT","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fgsap\u002Fgsap-performance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: gsap-performance\ndescription: GSAP的官方性能技能——更喜欢转换，避免布局混乱，会改变，批处理。在优化GSAP动画、减少jank或用户询问动画性能、FPS或平滑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","9f046539cc7b77fcc2cdcc31dee08c104218a554","gsap\u002Fgsap-performance","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN","https:\u002F\u002Fgithub.com\u002Fzzz2929","2026-09-29 15:32:20",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add zzz2929\u002Fskills-zh-CN --skill gsap-performance",{"tool":36,"command":37},"bunx","bunx skills add zzz2929\u002Fskills-zh-CN --skill gsap-performance",{"tool":39,"command":40},"pnpm","pnpm dlx skills add zzz2929\u002Fskills-zh-CN --skill gsap-performance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fgsap\u002Fgsap-performance\u002FSKILL.md",true,[],[45,52,59,66,73,81],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M79SG5BDV2ZDS4QA238B9ZCR","vercel-react-view-transitions","使用 React 的视图转换 API（`\u003CViewTransition>` 组件、`addTransitionType` 和 CSS 视图转换伪元素）实现流畅、原生感觉的动画的指南。每当用户想要添加页面转换、为路线更改设置动画、创建共享元素动画、为组件的进入\u002F退出设置动画、为列表重新排序设置动画、实现定向（向前\u002F向后）导航动画或在 Next.js 中集成视图转换时，请使用此技能。当用户提及视图转换、startViewTransition、ViewTransition、转换类型或询问有关在 React 中的 UI 状态之间设置动画而无需第三方动画库时也可使用。","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fvercel-labs\u002Freact-view-transitions\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79SG04BFAVYZ2C3RQ7YX9C6","vercel-react-native-skills","React Native和Expo构建高性能移动应用程序的最佳实践。在构建React Native组件、优化列表性能、实现动画或使用本机模块时使用。涉及React Native、Expo、移动性能或本机平台API的任务的触发器。","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fvercel-labs\u002Freact-native-skills\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79SFVFWYQKG0V95RXM3MEAW","vercel-react-best-practices","Vercel Engineering的React和Next.js性能优化指南。在编写、审查或重构React\u002FNext.js代码时，应使用此技能，以确保最佳性能模式。涉及React组件、Next.js页面、数据获取、捆绑优化或性能改进的任务的触发器。","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fvercel-labs\u002Freact-best-practices\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79SFJXD83X39ZFV0SR8Z6TY","vercel-composition-patterns","可扩展的React组合模式。在重构具有布尔属性增殖的组件、构建灵活的组件库或设计可重用的API时使用。涉及复合组件、渲染道具、上下文提供者或组件架构的任务的触发器。包括React 19 API变更。","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fvercel-labs\u002Fcomposition-patterns\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79SEC8F4BW45HKSK7VSYQ1Y","ui-styling","使用 shadcn\u002Fui 组件（基于 Radix UI + Tailwind 构建）、Tailwind CSS 实用优先样式和基于画布的视觉设计创建美观、可访问的用户界面。在构建用户界面、实现设计系统、创建响应式布局、添加可访问组件（对话框、下拉菜单、表单、表格）、自定义主题和颜色、实现深色模式、生成视觉设计和海报或跨应用程序建立一致的样式模式时使用。","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fui-ux-pro-max\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fui-ux-pro-max\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79SE0JWV6111HE4M0A5K6XW","design","“综合设计技能：品牌标识、设计标记、UI 样式、徽标生成（55 种样式、Gemini 或 Atlas Cloud AI）、企业形象程序（50 个可交付成果、CIP 模型）、HTML 演示文稿（Chart.js）、横幅设计（22 种样式、社交\u002F广告\u002F网页\u002F打印）、图标设计（15 种样式、SVG、Gemini 3.1 Pro）、社交照片（HTML→屏幕截图、多平台）。操作：设计徽标、创建 CIP、生成模型、构建幻灯片、设计横幅、生成图标、创建社交照片、社交媒体图像、品牌标识、设计系统：Facebook、Twitter、LinkedIn、YouTube、Instagram、Pinterest、TikTok、Threads、Google Ads。”","https:\u002F\u002Fgithub.com\u002Fzzz2929\u002Fskills-zh-CN\u002Fblob\u002Fmain\u002Fui-ux-pro-max\u002Fdesign\u002FSKILL.md",[],[]]