Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

Framer Motion

  • 943 installs
  • 186 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

framer-motion is a React frontend skill that helps developers generate and review high-performance Framer Motion animation code while avoiding re-render and bundle bloat issues.

About

framer-motion is a community skill from pproenca/dot-skills that packages Framer Motion performance optimization guidance for React applications. The guide contains 42 rules across 9 categories, prioritized by impact to steer automated refactoring and code generation for motion components, gestures, layout transitions, scroll-linked effects, and SVG animations. Developers reach for framer-motion when adding animations, reviewing janky interactions, or reducing unnecessary React re-renders tied to motion state. The skill triggers on tasks involving Framer Motion APIs and is structured as a prioritized rule set rather than ad hoc tips. It suits SaaS dashboards and browser-extension UIs where smooth 60fps interactions and smaller JavaScript bundles directly affect user experience and Core Web Vitals.

  • 42 performance rules across 9 priority-ordered categories
  • Critical focus on bundle optimization and re-render prevention
  • Specific guidance for layout transitions, scroll-linked effects, gestures and SVG animations
  • Prefix-based rule system (bundle-, rerender-, anim-, layout-, etc.) for automated linting and refactoring
  • Hard-gate review before committing animation-heavy React components

Framer Motion by the numbers

  • 943 all-time installs (skills.sh)
  • +33 installs in the week ending Jul 29, 2026 (Skillselion tracking)
  • Ranked #391 of 2,244 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill framer-motion

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs943
repo stars186
Security audit3 / 3 scanners passed
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do you optimize Framer Motion performance in React?

Generate and review high-performance Framer Motion animation code that avoids common React re-render and bundle bloat issues.

Who is it for?

React developers shipping Framer Motion animations who need systematic performance review across gestures, layout transitions, and SVG motion.

Skip if: Teams using CSS-only animations or a non-React animation library without Framer Motion dependencies.

When should I use this skill?

The user writes, reviews, or refactors Framer Motion animations, gestures, layout transitions, scroll effects, or SVG motion in React.

What you get

Refactored Framer Motion components, reduced re-render patterns, and animation code aligned to 42 prioritized performance rules.

  • Optimized motion component code
  • Performance rule checklist

By the numbers

  • Contains 42 Framer Motion performance rules
  • Organizes rules across 9 categories

Files

SKILL.mdMarkdownGitHub ↗

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)

  • `bundle-lazy-motion` - Use LazyMotion and m component instead of motion
  • `bundle-dynamic-features` - Dynamically import motion features
  • `bundle-dom-animation` - Use domAnimation for basic animations
  • `bundle-use-animate-mini` - Use mini useAnimate for simple cases
  • `bundle-strict-mode` - Enable strict mode to catch accidental imports

2. Re-render Prevention (CRITICAL)

  • `rerender-motion-value` - Use useMotionValue instead of useState
  • `rerender-use-transform` - Derive values with useTransform
  • `rerender-stable-callbacks` - Keep animation callbacks stable
  • `rerender-variants-object` - Define variants outside component
  • `rerender-animate-prop` - Use stable animate values
  • `rerender-motion-value-event` - Use motion value events

3. Animation Properties (HIGH)

  • `anim-transform-properties` - Animate transform properties
  • `anim-opacity-filter` - Prefer opacity and filter for visual effects
  • `anim-hardware-acceleration` - Leverage hardware acceleration
  • `anim-will-change` - Use willChange prop judiciously
  • `anim-independent-transforms` - Animate transforms independently
  • `anim-keyframes-array` - Use keyframe arrays for sequences

4. Layout Animations (HIGH)

  • `layout-dependency` - Use layoutDependency to limit measurements
  • `layout-position-size` - Use layout="position" or "size" appropriately
  • `layout-group` - Group related layout animations
  • `layout-id-shared` - Use layoutId for shared element transitions
  • `layout-scroll` - Add layoutScroll to scrollable ancestors

5. Scroll Animations (MEDIUM-HIGH)

  • `scroll-use-scroll` - Use useScroll hook for scroll-linked animations
  • `scroll-use-spring-smooth` - Smooth scroll animations with useSpring
  • `scroll-element-tracking` - Track specific elements entering viewport
  • `scroll-offset-configuration` - Configure scroll offsets
  • `scroll-container-ref` - Track scroll within specific containers

6. Gesture Optimization (MEDIUM)

  • `gesture-while-props` - Use whileHover/whileTap instead of handlers
  • `gesture-variants-flow` - Let gesture variants flow to children
  • `gesture-drag-constraints` - Use dragConstraints ref for boundaries
  • `gesture-drag-elastic` - Configure dragElastic for natural feel
  • `gesture-tap-cancel` - Use onTapCancel for interrupted gestures

7. Spring & Physics (MEDIUM)

  • `spring-physics-based` - Use physics-based springs for interruptibility
  • `spring-damping-ratio` - Configure damping to control oscillation
  • `spring-mass-inertia` - Adjust mass for heavier/lighter feel
  • `spring-use-spring-hook` - Use useSpring for reactive values

8. SVG & Path Animations (LOW-MEDIUM)

  • `svg-path-length` - Use pathLength for line drawing animations
  • `svg-motion-components` - Use motion.path and motion.circle
  • `svg-viewbox-animation` - Animate viewBox for zoom effects
  • `svg-morph-matching-points` - Match point counts for morphing

9. Exit Animations (LOW)

  • `exit-animate-presence` - Wrap conditional renders with AnimatePresence
  • `exit-unique-keys` - Provide unique keys for AnimatePresence children
  • `exit-mode-wait` - Use mode="wait" for sequential transitions

How to Use

Read individual reference files for detailed explanations and code examples:

  • Section definitions - Category structure and impact levels
  • Rule template - Template for adding new rules

Reference Files

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

Related skills

How it compares

Use framer-motion for Framer Motion-specific React performance; reach for general React performance skills when animations are CSS-only or use a different library.

FAQ

How many rules does the framer-motion skill include?

The framer-motion skill includes 42 performance optimization rules organized into 9 categories, prioritized by impact to guide refactoring and automated code generation in React apps.

When should framer-motion be applied?

framer-motion should be applied when writing, reviewing, or refactoring React animations involving motion components, gestures, layout transitions, scroll-linked effects, or SVG animations with Framer Motion.

Is Framer Motion safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.