framer-motion

Create declarative animations for React and Next.js with motion components.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/Sunaina-ismail/todo-hackathon --skill framer-motion-sunaina-ismail
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framer-motion
Source: https://github.com/Sunaina-ismail/todo-hackathon/tree/main/.claude/skills/framer-motion
Command: npx skills add https://github.com/Sunaina-ismail/todo-hackathon --skill framer-motion-sunaina-ismail

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of adding complex, production-ready animations to React and Next.js applications, making UIs more engaging and interactive without requiring deep animation expertise.

Core Features & Use Cases

  • Motion Components: Animate any HTML or SVG element with motion.div, motion.svg, etc.
  • Gestures & Dragging: Easily implement hover, tap, drag, and swipe interactions.
  • Page Transitions: Create smooth transitions between routes using AnimatePresence.
  • Layout Animations: Automatically animate elements when their position or size changes.
  • Use Case: Add a subtle fade-in and slide-up effect to cards as they enter the viewport, or create a draggable element that snaps back to its original position.

Quick Start

Use the framer-motion skill to animate a div with initial opacity 0 and animate it to opacity 1.

Frequently Asked Questions about framer-motion

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

FAQPage Schema
How do I add React animations to my UI components?

You can add React animations using motion components like motion.div to declaratively animate HTML or SVG elements with initial and animate properties for dynamic UI effects.

Can I create page transitions between routes in a Next.js application?

Yes, you can create smooth page transitions between routes in a Next.js application by using the AnimatePresence component to manage exit animations during route changes.

How do gestures and dragging work for interactive UI elements?

Gestures and dragging work by attaching event listeners to motion components, allowing you to easily implement hover, tap, drag, and swipe interactions that can snap elements back to their original position.

Does this animation library automatically animate layout changes?

Yes, layout animations automatically animate elements when their position or size changes in the DOM, providing smooth transitions without requiring manual coordinate calculations.

What is the best way to orchestrate complex animations in React?

The best way to orchestrate complex animations in React is by using advanced hooks provided by the library, enabling flexible and performant animation sequencing across multiple components.

Do I need deep animation expertise to build production-ready React transitions?

No, you do not need deep animation expertise to build production-ready React transitions; the library simplifies complex orchestration into declarative properties for immediate use.