Make any element draggable with the drag property. Simply setting a motion element’s drag property to true, which will let you drag it. export function Example() { return ( <motion.div style={{ width: 100, height: 100, borderRadius: 10, backgroundColor: "#fff", }} drag={true} /> ); } There’s also a shorthand syntax: You can omit the true and […]
To access this page, you must purchase The Mighty Motion Guide.
plugins premium WordPress
Scroll to Top