Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Animates a div using keyframes for multiple properties.
# framer_motion/demo/keyframes.jsx
import React from 'react';
import { motion } from 'framer-motion';
function Keyframes() {
return (
<motion.div
style={{ width: 100, height: 100, backgroundColor: 'orange' }}
animate={{ x: [0, 100, 0], rotate: [0, 180, 360] }}
transition={{ duration: 2, repeat: Infinity }}
/>
);
}
export default Keyframes;Framer Motion is a production-ready animation library for React, designed to create smooth, declarative animations, gestures, and transitions in web applications.
Origin & Creator
Framer Motion was developed by Framer B.V., the same team behind the Framer prototyping tool (2018-present).
Industrial Note
Framer Motion is used extensively in interactive web apps, SaaS dashboards, landing pages, micro-interactions, and complex React UI/UX animations.