mcpField
F
framer-motion

framer-motion

github.com/pproencaDesign & UI2201.1k installsUpdated 11w ago
Repository

About framer-motion

A Framer Motion optimization guide for React developers, with prioritized rules covering performance, layout, scroll, and gesture animations.

Key features

  1. 01Covers nine optimization categories
  2. 02Prioritizes rules by impact
  3. 03Offers animation coding guidance
  4. 04Includes reference files and a rule template

Use cases

  1. 01Optimize animation-heavy React applications
  2. 02Reduce unnecessary renders during animation
  3. 03Build layout, scroll, or gesture animations

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/pproenca/dot-skills --skill framer-motion

After installing, type/framer-motionin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

metadata.json
assets/templates/
_template.md
references/
_sections.md
anim-hardware-acceleration.md
anim-independent-transforms.md
anim-keyframes-array.md
anim-opacity-filter.md
anim-transform-properties.md
anim-will-change.md
bundle-dom-animation.md
bundle-dynamic-features.md
bundle-lazy-motion.md
bundle-strict-mode.md
bundle-use-animate-mini.md
exit-animate-presence.md
exit-mode-wait.md
exit-unique-keys.md
gesture-drag-constraints.md
gesture-drag-elastic.md
gesture-tap-cancel.md
gesture-variants-flow.md
gesture-while-props.md
layout-dependency.md
layout-group.md
layout-id-shared.md
layout-position-size.md
layout-scroll.md
rerender-animate-prop.md
rerender-motion-value-event.md
rerender-motion-value.md

Details

From the project README

Community Framer Motion Best Practices

Comprehensive 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.

When to Apply

Reference these guidelines when:

  • Adding animations to React components with Framer Motion
  • Optimizing bundle size for animation-heavy applications
  • Preventing unnecessary re-renders during animations
  • Implementing layout transitions or shared element animations
  • Building scroll-linked or gesture-based interactions

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Bundle OptimizationCRITICALbundle-
2Re-render PreventionCRITICALrerender-
3Animation PropertiesHIGHanim-
4Layout AnimationsHIGHlayout-
5Scroll AnimationsMEDIUM-HIGHscroll-
6Gesture OptimizationMEDIUMgesture-
7Spring & PhysicsMEDIUMspring-
8SVG & Path AnimationsLOW-MEDIUMsvg-
9Exit AnimationsLOWexit-

Quick Reference

1. Bundle Optimization (CRITICAL)
2. Re-render Prevention (CRITICAL)
3. Animation Properties (HIGH)
4. Layout Animations (HIGH)
5. Scroll Animations (MEDIUM-HIGH)
6. Gesture Optimization (MEDIUM)
7. Spring & Physics (MEDIUM)
8. SVG & Path Animations (LOW-MEDIUM)
9. Exit Animations (LOW)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Comments

Markdown supported