interface MotionAdvancedProps {
    custom?: any;
    ignoreStrict?: boolean;
    inherit?: boolean;
}

Hierarchy (view full)

Properties

custom?: any

Custom data to use to resolve dynamic variants differently for each animating component.

const variants = {
visible: (custom) => ({
opacity: 1,
transition: { delay: custom * 0.2 }
})
}

<motion.div custom={0} animate="visible" variants={variants} />
<motion.div custom={1} animate="visible" variants={variants} />
<motion.div custom={2} animate="visible" variants={variants} />
ignoreStrict?: boolean

Set to false to prevent throwing an error when a motion component is used within a LazyMotion set to strict.

inherit?: boolean

Set to false to prevent inheriting variant changes from its parent.

Generated using TypeDoc