motion-framer

Create React animations with Motion components, gestures, variants, and layout transitions.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/ayofemiade/cleva --skill motion-framer-ayofemiade
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: motion-framer
Source: https://github.com/ayofemiade/cleva/tree/main/.claude/skills/motion-framer
Command: npx skills add https://github.com/ayofemiade/cleva --skill motion-framer-ayofemiade

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Building smooth, interactive animations in React requires deep knowledge of the Motion (Framer Motion) API, including gestures, exit animations, spring physics, and layout transitions, which is time-consuming to learn and easy to implement incorrectly. ## Core Features & Use Cases - Animation Patterns: Provides ready-to-use patterns for hover, tap, drag, scroll-triggered, exit, layout, and spring animations using motion components and variants. - Code Generation Scripts: Includes CLI tools to generate Motion component boilerplate and build variant configurations interactively, with TypeScript support. - Reference Documentation: Ships a complete API reference covering props, transitions, hooks, AnimatePresence, and performance optimization guidance. - Use Case: When building a modal dialog in a Next.js app, use this Skill to implement AnimatePresence exit animations with spring physics and a backdrop fade, avoiding common pitfalls like missing key props. ## Quick Start Use the motion-framer skill to add a hover scale effect and AnimatePresence exit animation to my React modal component.

Frequently Asked Questions about motion-framer

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

FAQPage Schema
How do I animate a component when it is removed from the React DOM?▼

Wrap the conditional component in AnimatePresence and add an exit prop to the motion component defining the exit animation. The component must be a direct child of AnimatePresence and have a unique key prop for tracking.

How to create staggered animations for list items in Framer Motion?▼

Define container variants with staggerChildren and delayChildren in the transition, then define item variants for each child. Children automatically inherit the parent's variant labels, so you only set initial and animate on the container.

What is the difference between Motion and Framer Motion?▼

Motion (v11+) is the modern, smaller library from the Framer Motion creators, while Framer Motion is the full-featured predecessor still widely used. Both share the same API with motion components, variants, and gesture props.

Does Framer Motion work with Next.js and TypeScript?▼

Yes, Framer Motion works with Next.js, Vite, Remix, and all modern React frameworks, and fully supports TypeScript. You can import types like Variants, Transition, and MotionProps from framer-motion for type-safe animation definitions.

Why are my Framer Motion animations janky or slow?▼

Janky animations usually result from animating layout properties like width, height, top, or left instead of hardware-accelerated transforms. Animate x, y, scale, and rotate instead, and use layout animations sparingly since they are computationally expensive.

Why is my exit animation not working in Framer Motion?▼

Exit animations fail when the component is not wrapped in AnimatePresence or lacks a unique key prop. Ensure the motion component is a direct child of AnimatePresence and has an exit prop defining the animation.