MotionConfig is used to set configuration options for all children motion components.
MotionConfig
motion
import { motion, MotionConfig } from "framer-motion"export function App() { return ( <MotionConfig transition={{ type: "spring" }}> <motion.div animate={{ x: 100 }} /> </MotionConfig> )} Copy
import { motion, MotionConfig } from "framer-motion"export function App() { return ( <MotionConfig transition={{ type: "spring" }}> <motion.div animate={{ x: 100 }} /> </MotionConfig> )}
Generated using TypeDoc
MotionConfigis used to set configuration options for all childrenmotioncomponents.