Skillshub framer-motion

Community Framer Motion Best Practices

install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/framer-motion" ~/.claude/skills/comeonoliver-skillshub-framer-motion-0d2f75 && rm -rf "$T"
manifest: skills/pproenca/dot-skills/framer-motion/SKILL.md
source content

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 OptimizationCRITICAL
bundle-
2Re-render PreventionCRITICAL
rerender-
3Animation PropertiesHIGH
anim-
4Layout AnimationsHIGH
layout-
5Scroll AnimationsMEDIUM-HIGH
scroll-
6Gesture OptimizationMEDIUM
gesture-
7Spring & PhysicsMEDIUM
spring-
8SVG & Path AnimationsLOW-MEDIUM
svg-
9Exit AnimationsLOW
exit-

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