[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FEB606N6GP5Y0DW3DG44Z9":3,"skill-same:01M6FEB606N6GP5Y0DW3DG44Z9":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"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},"01M6FEB606N6GP5Y0DW3DG44Z9","framer-motion",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fframer-motion\u002FSKILL.md",[],[18,19],"motion","framer motion","2026-11-10 10:12:30",false,"# Community Framer Motion Best Practices\n\nComprehensive performance optimization guide for Framer Motion animations in React applications. Contains 42 rules across 9 categories, prioritized by impact to guide automated refactoring and code generation.\n\n## When to Apply\n\nReference these guidelines when:\n- Adding animations to React components with Framer Motion\n- Optimizing bundle size for animation-heavy applications\n- Preventing unnecessary re-renders during animations\n- Implementing layout transitions or shared element animations\n- Building scroll-linked or gesture-based interactions\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 1 | Bundle Optimization | CRITICAL | `bundle-` |\n| 2 | Re-render Prevention | CRITICAL | `rerender-` |\n| 3 | Animation Properties | HIGH | `anim-` |\n| 4 | Layout Animations | HIGH | `layout-` |\n| 5 | Scroll Animations | MEDIUM-HIGH | `scroll-` |\n| 6 | Gesture Optimization | MEDIUM | `gesture-` |\n| 7 | Spring & Physics | MEDIUM | `spring-` |\n| 8 | SVG & Path Animations | LOW-MEDIUM | `svg-` |\n| 9 | Exit Animations | LOW | `exit-` |\n\n## Quick Reference\n\n### 1. Bundle Optimization (CRITICAL)\n\n- [`bundle-lazy-motion`](references\u002Fbundle-lazy-motion.md) - Use LazyMotion and m component instead of motion\n- [`bundle-dynamic-features`](references\u002Fbundle-dynamic-features.md) - Dynamically import motion features\n- [`bundle-dom-animation`](references\u002Fbundle-dom-animation.md) - Use domAnimation for basic animations\n- [`bundle-use-animate-mini`](references\u002Fbundle-use-animate-mini.md) - Use mini useAnimate for simple cases\n- [`bundle-strict-mode`](references\u002Fbundle-strict-mode.md) - Enable strict mode to catch accidental imports\n\n### 2. Re-render Prevention (CRITICAL)\n\n- [`rerender-motion-value`](references\u002Frerender-motion-value.md) - Use useMotionValue instead of useState\n- [`rerender-use-transform`](references\u002Frerender-use-transform.md) - Derive values with useTransform\n- [`rerender-stable-callbacks`](references\u002Frerender-stable-callbacks.md) - Keep animation callbacks stable\n- [`rerender-variants-object`](references\u002Frerender-variants-object.md) - Define variants outside component\n- [`rerender-animate-prop`](references\u002Frerender-animate-prop.md) - Use stable animate values\n- [`rerender-motion-value-event`](references\u002Frerender-motion-value-event.md) - Use motion value events\n\n### 3. Animation Properties (HIGH)\n\n- [`anim-transform-properties`](references\u002Fanim-transform-properties.md) - Animate transform properties\n- [`anim-opacity-filter`](references\u002Fanim-opacity-filter.md) - Prefer opacity and filter for visual effects\n- [`anim-hardware-acceleration`](references\u002Fanim-hardware-acceleration.md) - Leverage hardware acceleration\n- [`anim-will-change`](references\u002Fanim-will-change.md) - Use willChange prop judiciously\n- [`anim-independent-transforms`](references\u002Fanim-independent-transforms.md) - Animate transforms independently\n- [`anim-keyframes-array`](references\u002Fanim-keyframes-array.md) - Use keyframe arrays for sequences\n\n### 4. Layout Animations (HIGH)\n\n- [`layout-dependency`](references\u002Flayout-dependency.md) - Use layoutDependency to limit measurements\n- [`layout-position-size`](references\u002Flayout-position-size.md) - Use layout=\"position\" or \"size\" appropriately\n- [`layout-group`](references\u002Flayout-group.md) - Group related layout animations\n- [`layout-id-shared`](references\u002Flayout-id-shared.md) - Use layoutId for shared element transitions\n- [`layout-scroll`](references\u002Flayout-scroll.md) - Add layoutScroll to scrollable ancestors\n\n### 5. Scroll Animations (MEDIUM-HIGH)\n\n- [`scroll-use-scroll`](references\u002Fscroll-use-scroll.md) - Use useScroll hook for scroll-linked animations\n- [`scroll-use-spring-smooth`](references\u002Fscroll-use-spring-smooth.md) - Smooth scroll animations with useSpring\n- [`scroll-element-tracking`](references\u002Fscroll-element-tracking.md) - Track specific elements entering viewport\n- [`scroll-offset-configuration`](references\u002Fscroll-offset-configuration.md) - Configure scroll offsets\n- [`scroll-container-ref`](references\u002Fscroll-container-ref.md) - Track scroll within specific containers\n\n### 6. Gesture Optimization (MEDIUM)\n\n- [`gesture-while-props`](references\u002Fgesture-while-props.md) - Use whileHover\u002FwhileTap instead of handlers\n- [`gesture-variants-flow`](references\u002Fgesture-variants-flow.md) - Let gesture variants flow to children\n- [`gesture-drag-constraints`](references\u002Fgesture-drag-constraints.md) - Use dragConstraints ref for boundaries\n- [`gesture-drag-elastic`](references\u002Fgesture-drag-elastic.md) - Configure dragElastic for natural feel\n- [`gesture-tap-cancel`](references\u002Fgesture-tap-cancel.md) - Use onTapCancel for interrupted gestures\n\n### 7. Spring & Physics (MEDIUM)\n\n- [`spring-physics-based`](references\u002Fspring-physics-based.md) - Use physics-based springs for interruptibility\n- [`spring-damping-ratio`](references\u002Fspring-damping-ratio.md) - Configure damping to control oscillation\n- [`spring-mass-inertia`](references\u002Fspring-mass-inertia.md) - Adjust mass for heavier\u002Flighter feel\n- [`spring-use-spring-hook`](references\u002Fspring-use-spring-hook.md) - Use useSpring for reactive values\n\n### 8. SVG & Path Animations (LOW-MEDIUM)\n\n- [`svg-path-length`](references\u002Fsvg-path-length.md) - Use pathLength for line drawing animations\n- [`svg-motion-components`](references\u002Fsvg-motion-components.md) - Use motion.path and motion.circle\n- [`svg-viewbox-animation`](references\u002Fsvg-viewbox-animation.md) - Animate viewBox for zoom effects\n- [`svg-morph-matching-points`](references\u002Fsvg-morph-matching-points.md) - Match point counts for morphing\n\n### 9. Exit Animations (LOW)\n\n- [`exit-animate-presence`](references\u002Fexit-animate-presence.md) - Wrap conditional renders with AnimatePresence\n- [`exit-unique-keys`](references\u002Fexit-unique-keys.md) - Provide unique keys for AnimatePresence children\n- [`exit-mode-wait`](references\u002Fexit-mode-wait.md) - Use mode=\"wait\" for sequential transitions\n\n## How to Use\n\nRead individual reference files for detailed explanations and code examples:\n\n- [Section definitions](references\u002F_sections.md) - Category structure and impact levels\n- [Rule template](assets\u002Ftemplates\u002F_template.md) - Template for adding new rules\n\n## Reference Files\n\n| File | Description |\n|------|-------------|\n| [references\u002F_sections.md](references\u002F_sections.md) | Category definitions and ordering |\n| [assets\u002Ftemplates\u002F_template.md](assets\u002Ftemplates\u002F_template.md) | Template for new rules |\n| [metadata.json](metadata.json) | Version and reference information |\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fpproenca\u002Fdot-skills\u002Fframer-motion",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill framer-motion",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill framer-motion",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill framer-motion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fpproenca\u002Fdot-skills\u002Fframer-motion\u002FSKILL.md",true,[],[48,57,66,75,81,87],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[54,55,56],"model","model hierarchy","model hierarchy skill",{"skillNo":58,"name":59,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[63,64,65],"MCP","zoom","zoom mcp",{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[72,73,74,64],"sdk","zoom apps sdk","apps",{"skillNo":76,"name":77,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[77],{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[89]]