• MotionConfig is used to set configuration options for all children motion components.

    import { motion, MotionConfig } from "framer-motion"

    export function App() {
    return (
    <MotionConfig transition={{ type: "spring" }}>
    <motion.div animate={{ x: 100 }} />
    </MotionConfig>
    )
    }

    Parameters

    Returns JSX.Element

Generated using TypeDoc