framer-motion

Create Framer Motion animations for React and Next.js components.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Naw3/skillsrepo --skill framer-motion-naw3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: framer-motion
Source: https://github.com/Naw3/skillsrepo/tree/main/framer-motion
Command: npx skills add https://github.com/Naw3/skillsrepo --skill framer-motion-naw3

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Animation patterns and micro-interactions are essential for modern UI but implementing them can be boilerplate-heavy and error-prone. This Skill provides practical patterns and examples using Framer Motion to deliver smooth, accessible motion in React/Next.js apps.

Core Features & Use Cases

  • Page Transitions and layout animations to improve navigation
  • AnimatePresence for clean exit animations and modal transitions
  • Gesture Interactions and parallax-like effects
  • Scroll-based animations and shared element transitions
  • Patterns and best practices for motion design in React apps

Quick Start

Create a simple animated button by wrapping it with motion.button and adding whileHover and whileTap effects to enhance interactivity.

Frequently Asked Questions about framer-motion

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

FAQPage Schema
How do I add smooth page transitions and layout animations to a React app?

Smooth page transitions in React apps are achieved using Framer Motion patterns and motion primitives to animate navigation with minimal boilerplate. This approach delivers clean layout animations that improve user experience during route changes.

Can I use Framer Motion for modal exit animations in Next.js server components?

Framer Motion works with Next.js server components by requiring a 'use client' boundary for the client component. This setup allows AnimatePresence to handle clean exit animations and modal transitions effectively in your application.

How do I implement gesture interactions and scroll-driven effects in React?

Gesture interactions and scroll-driven effects in React are implemented using Framer Motion's whileHover, whileTap, and scroll-based animation patterns. These motion primitives enable interactive parallax-like effects and responsive user interfaces.

What is the best way to create accessible micro-interactions without heavy boilerplate?

Accessible micro-interactions without heavy boilerplate are best created using Framer Motion variants and patterns in React. Wrapping elements like motion.button with whileHover and whileTap effects enhances interactivity simply.

Why do I need a 'use client' directive when adding motion to Next.js components?

A 'use client' directive is required when adding motion to Next.js components because Framer Motion operates on the client side. This boundary ensures interactive client components function properly within server component architectures.