framer-motion

Implements Disney's 12 animation principles using Framer Motion in React applications.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/Dhruv-Ghanchi/Portfolio-Webiste --skill framer-motion-dhruv-ghanchi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framer-motion
Source: https://github.com/Dhruv-Ghanchi/Portfolio-Webiste/tree/main/.agents/skills/framer-motion
Command: npx skills add https://github.com/Dhruv-Ghanchi/Portfolio-Webiste --skill framer-motion-dhruv-ghanchi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires framer-motion.

What problem does it solve? Developers often struggle to translate classic animation theory into working React code, resulting in stiff or unnatural UI motion. This Skill provides ready-to-use Framer Motion patterns for each of Disney's 12 animation principles. ## Core Features & Use Cases - 12 Animation Principles as Code: Squash and stretch, anticipation, staging, arcs, timing, exaggeration, and more, each mapped to concrete Framer Motion JSX snippets. - Gesture and Layout Animations: Patterns for whileHover, whileTap, AnimatePresence exit animations, and automatic layout transitions. - Staggered List Animations: Container and item variants for orchestrating child animations with staggerChildren. - Use Case: When building a landing page hero section, apply the anticipation and follow-through patterns to make elements enter with natural, physics-based motion instead of linear fades. ## Quick Start Use the framer-motion skill to add staggered entrance animations with spring physics to my React card list component.

Frequently Asked Questions about framer-motion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I animate components with Framer Motion in React?

Wrap elements with motion components like motion.div and pass an animate prop describing the target state, plus a transition prop for duration and easing. Variants let you define named animation states for reusable orchestration.

How to create staggered list animations in Framer Motion?

Define a container variant with staggerChildren in its transition, then give each child motion element an item variant. When the container animates to its show state, children animate in sequence with the specified delay between each.

Does Framer Motion support spring physics animations?

Yes, set transition type to spring and configure stiffness and damping values. Low damping creates overshoot effects useful for exaggeration, while higher damping produces controlled, natural-feeling motion.

How do I animate elements when they unmount in React?

Wrap conditional components in AnimatePresence and define an exit prop on the motion element. Framer Motion delays unmounting until the exit animation completes, enabling smooth removal transitions.

When should I use CSS transitions instead of Framer Motion?

CSS transitions suffice for simple hover states and single-property changes. Framer Motion is better for orchestrated sequences, gesture-driven interactions, layout animations, and exit transitions that CSS cannot handle declaratively.