
Motion (Framer Motion)
The complete animation library for React and the web. Silky smooth spring physics, layout animations, and gesture support.

Overview
Motion (formerly Framer Motion) is the industry-defining production-ready animation and gesture library for React and modern JavaScript. Created by Matt Perry, Motion makes complex declarative animations, layout morphing, gestures, and scroll-driven effects intuitive and effortless.
It powers animations across top-tier digital products, creative portfolios, and modern UI libraries worldwide.
Key Features
- 🌊 Declarative Spring Physics: Natural, organic animations with fluid spring and inertia simulation.
- 📐 Automatic Layout Morphing: Smoothly animate layout changes between states with a single
layoutprop. - 👆 Rich Gesture System: Built-in support for hover, tap, pan, drag, and pinch gestures.
- 📜 Scroll-Linked Animations: Effortlessly tie animations to viewport scroll progress via
useScroll.
Installation & Quick Start
npm install motionBasic Animation Example
import React from 'react';
import { motion } from "motion/react";
export default function Demo() {
return (
<motion.div
initial={{ opacity: 0, scale: 0.8 }}
animate={{ opacity: 1, scale: 1 }}
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
className="p-6 bg-blue-500 text-white rounded-2xl cursor-pointer"
>
Click or Hover Me
</motion.div>
);
}When to Choose
- Ideal For: React web applications, interactive landing pages, layout transitions, and tactile user interfaces.
- Alternatives: For 3D canvas rendering, use Three.js / React Three Fiber; for pure timeline animations in vanilla JS, use GSAP.
Comments & Discussion
No comments yet. Be the first to share your experience or thoughts!
Related libraries
Curated by category & stack23rd
An open-source shadcn/ui registry of opinionated, tasteful components by radiumcoders — WebGL shaders, playful 404s, and interactive showpieces you copy, paste, and own.
Great UI
A curated collection of beautiful, copy-paste React components built with TypeScript, Tailwind CSS v4, and Motion for crafting premium interfaces instantly.
Rewamp UI
A copy-paste React component library featuring highly interactive, physics-driven Framer Motion and Three.js WebGL components built with Tailwind CSS 4.