Framer Motion
Framer Motion is a React animation library, and I use it for page transitions, section reveals and small micro-interactions.
How I use Framer Motion
Today it's also developed under the name Motion, and animations are described right inside the components.
A well-judged animation helps visitors follow what just happened, like an item landing in the cart or a menu opening. I keep animations short and restrained so the site stays fast on budget phones and doesn't bother people who prefer less motion on screen.
When I use it, I animate transform and opacity, which the browser can change without recalculating the layout, use AnimatePresence for elements leaving the screen, and respect the system's reduced-motion setting. I don't have a portfolio project built around it, so it's one of the tools I use less often.
For simpler effects, CSS transitions and Tailwind CSS are often enough; I bring in Framer Motion when a React interface needs more complex transitions, with Next.js or Vite.
Frequently asked questions about Framer Motion
What is Framer Motion?
Framer Motion is an open-source animation library for React apps, now also developed under the name Motion. Animations are described right in the components, including transitions, exit animations and drag gestures.
Do animations slow down a website?
They can, if there are too many or they change width, height and position, forcing the browser to keep recalculating the layout. Short animations of transform and opacity usually don't slow a site down noticeably, and it's good practice to respect the reduced-motion setting.
Do you build animations with Framer Motion?
I can, but it's not a tool I use on every project, and I don't have a portfolio project built around it. For most sites I go with CSS transitions and Tailwind CSS, and pick Framer Motion when a React interface needs more complex transitions.