Search

Min and Max

Min and Max
Instead of setting dragConstraints, you can add min and max values to dragTransition. This has the same effect. So instead of writing this: export function Example() { return ( <div> <motion.div drag dragConstraints={{ top: -250, right: 250, bottom: 250, left: -250, }} /> </div> ); } … you can also write this: export function Example() […]
To access this page, you must purchase The Mighty Motion Guide.
Scroll to Top