framer-motion

Create physics-based UI animations in React with Framer Motion.

6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill framer-motion-jaivishchauhan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framer-motion
Source: https://github.com/JaivishChauhan/vibecoding-starter/tree/main/.agent/skills/framer-motion
Command: npx skills add https://github.com/JaivishChauhan/vibecoding-starter --skill framer-motion-jaivishchauhan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Framer Motion makes it easy to implement smooth, physics-based animations and micro-interactions in React apps, turning static interfaces into engaging experiences.

Core Features & Use Cases

  • Declarative motion: Animate components with simple props and variants.
  • Gesture & scroll: Build interactive gestures, scroll-triggered effects, and presence transitions.
  • Production-ready patterns: Use layout animations, shared element transitions, and staggered reveals in portfolio sites.

Quick Start

Install: npm install framer-motion Create a simple animated component: import { motion } from "framer-motion"; export function FadeIn({ children }: { children: React.ReactNode }) { return ( <motion.div initial={{ opacity: 0, y: 20 }} animate={{ opacity: 1, y: 0 }}> {children} </motion.div> ); }

Frequently Asked Questions about framer-motion

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

FAQPage Schema
How do I create physics-based UI animations in React applications?

Create physics-based UI animations in React by applying declarative props and variants to motion components using Framer Motion, enabling smooth mounting animations, gestures, and layout transitions.

What is the best way to build scroll-triggered effects and hover interactions for a React portfolio site?

Build scroll-triggered effects and hover interactions for a React portfolio by using Framer Motion's gesture and scroll APIs, implementing production-ready patterns like staggered reveals and shared element transitions.

Do I need React and TypeScript knowledge to implement micro-interactions with Framer Motion?

Yes, implementing micro-interactions with Framer Motion requires knowledge of React and TypeScript where applicable, alongside an understanding of the Framer Motion API to handle motion variants and layout transitions.

How do I animate component mounting and presence transitions in a React app?

Animate component mounting and presence transitions in a React app by importing motion components from Framer Motion and defining initial, animate, and exit properties to manage element visibility and lifecycle states.

Can I use declarative props instead of complex logic for React layout transitions?

Yes, you can use declarative props instead of complex logic for React layout transitions by passing simple variants and animation states directly to Framer Motion components to orchestrate shared element and staggered reveals.

Why use Framer Motion over other React animation libraries for UI interactions?

Use Framer Motion over other React animation libraries because it provides declarative syntax for complex UI interactions, handling physics-based animations, gestures, and scroll effects without manual timeline management.