19 React Framer Motion Examples
Demos for Framer Motion show how to quickly and effectively bring an interface to life using motion components. Particular attention is paid to working with variants, a powerful tool for cascading animations and synchronizing transitions between child elements. Additionally, relevant examples demonstrate how to integrate animations with hooks like useScroll for scroll effects and useDragControls for interactive elements.
Last updated:
Advanced Framer Motion Demo
An advanced Framer Motion demo that combines multiple animation techniques. It features smooth navigation state transitions with layoutId, an animated sidebar with staggerChildren for staggered reveals, and interactive grid filtering using layout.
Cursor Menu Button Morph with React and Framer Motion
This demo shows how to create a responsive and interactive cursor using Framer Motion that smoothly follows the mouse. The main feature is the “magnet effect,” where the cursor morphs into a part of the button on hover, providing a unique user experience.
Drag and Rotate with Framer Motion
This demo shows how to create a complex yet intuitive interface where the movement of one element (useMotionValue) in real-time controls the animation of another. The use of perspective and rotateY creates a deep 3D effect.
Drag-and-Drop Playground with Framer Motion
An implementation of a drag-and-drop list using React and Framer Motion, where smooth and interactive card dragging is achieved through the useRef and useMotionValue hooks and element position recalculation logic.
F1 Leaderboard UI with Framer Motion
An interactive F1 dashboard, built with React, that simulates a race in real-time, updating driver positions using dynamic sorting and smoothly animating changes with Framer Motion.
Image Grid Scroll Up with Framer Motion
A demonstration of advanced animation in React, where the useScroll and useTransform hooks from Framer Motion are used to implement dynamic scrolling with changes in image scale, position, and offset.
Interactive List with Framer Motion
An interactive list in React using Framer Motion, showcasing the magic of AnimateSharedLayout for smoothly resizing and repositioning items on expansion. The content is revealed with AnimatePresence to handle animated entry and exit.
Loaders Playground with Framer Motion
A collection of four unique loading indicators in React, where Framer Motion is used to create smooth, infinite animations with motion, animate, and transition props.
Loading Animation with Framer Motion
Here you’ll find an example of how to create a loading animation with Framer Motion using just a few lines of code. The effect is achieved through Y-axis animation (y: ["0%", "100%", "0%"]) and infinite looping.
Modal Layout Animation with React and Framer Motion
An interactive UI demo showcasing seamless transitions between different element states. A key feature is the use of layoutId to link components in different parts of the DOM, creating the effect of a smooth transformation from a list to a modal window.
Multi-Level Dropdown Menu with Framer Motion
An elegant implementation of a responsive menu in React, where the useCycle hook is used to switch between two states — open/close and content change. The SVG icon animation and smooth transitions between blocks are realized with Framer Motion.
Multi-Step Form with Framer Motion
This is a multi-step form built with ReactJs and Framer Motion.
Parallax Scroll with Framer Motion
Using Framer Motion hooks (useScroll, useSpring, useTransform), the demo smoothly animates SVG graphics.
Progress Bar with Framer Motion
An infinite loading indicator created with Framer Motion.
React Framer Motion Card Animation
A demo showcasing dynamic, smooth animations powered by React and the Framer Motion library, illustrating how to easily create an interactive and lively UI with minimal code.
Responsive Tabs with React and Framer Motion
A stylish implementation of responsive tabs in React and Framer Motion, where the switching animation uses layoutId for smooth and performant motion between elements.
Spotlight Effect with React and Framer Motion
This component demonstrates how to create a “Spotlight” effect that follows the cursor using React and Framer Motion. It leverages AnimatePresence for smooth entry/exit animations and dynamically updates CSS variables for the radial gradient.
Synthesizer Selector with Framer Motion
A demonstration of an interactive UI component in React that uses Framer Motion to create dynamic animations. The main feature is the smooth content change that considers the direction of movement (motionDirection) and an animated side sheet.
Text Slide Effect with Framer Motion
This component demonstrates a double-text-layering technique using Framer Motion.