framer-motion

Framer Motion performance optimization guidelines. This skill should be used when writing, reviewing, or refactoring React animations with Framer Motion to…

INSTALLATION
npx skills add https://github.com/pproenca/dot-skills --skill framer-motion
Run in your project or agent environment. Adjust flags if your CLI version differs.

SKILL.md

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

Priority

Category

Impact

Prefix

1

Bundle Optimization

CRITICAL

bundle-

2

Re-render Prevention

CRITICAL

rerender-

3

Animation Properties

HIGH

anim-

4

Layout Animations

HIGH

layout-

5

Scroll Animations

MEDIUM-HIGH

scroll-

6

Gesture Optimization

MEDIUM

gesture-

7

Spring & Physics

MEDIUM

spring-

8

SVG & Path Animations

LOW-MEDIUM

svg-

9

Exit Animations

LOW

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

File

Description

references/_sections.md

Category definitions and ordering

assets/templates/_template.md

Template for new rules

metadata.json

Version and reference information

BrowserAct

Let your agent run on any real-world website

Bypass CAPTCHA & anti-bot for free. Start local, scale to cloud.

Explore BrowserAct Skills →

Stop writing automation&scrapers

Install the CLI. Run your first Skill in 30 seconds. Scale when you're ready.

Start free
free · no credit card