Framer Motion is a production-ready animation library for React with a simple API.
Getting Started
What is React?
Components & Props
Components & Props
Performance & Testing
React.memo & Lazy Loading
Custom Hooks
Building Custom Hooks
Error Boundaries
Error Handling
Server Components
React Server Components
Next.js Introduction
Next.js Basics
Animations & Transitions
Framer Motion
React
Intermediate
FREE
Framer Motion
Lesson 1 of 17
Intermediate
Interactive
Syntax
REACT
import { motion } from "framer-motion"; function Box() { return ( <motion.div initial={{ opacity: 0, y: -50 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }} /> ); }
Framer Motion Animation
REACT
import { motion } from "framer-motion"; function Box() { return ( <motion.div initial={{ opacity: 0, y: -50 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }} style={{ width: 100, height: 100, background: "blue", borderRadius: 8 }} /> ); }