0

I am working on a game where you can play with the position of the images/text/shapes using motion drag. However, I haven't found a way to make it work for the .img or .png.

They show a way that you can achieve that using the .svg. However, it can be a bit difficult when using rather complex files. https://codesandbox.io/s/framer-motion-path-drawing-drag-and-usetransform-jnqk2?fontsize=14&module=/src/Example.tsx&file=/src/Example.tsx

Any suggestions or alternatives? Thank you !

Ade N
  • 95
  • 9
  • Not sure what you mean, If you use MotionValue, you can pretty much do apply it to anything else, including img or png. https://www.framer.com/api/motion/motionvalue/ Also, take a look at useDragControls https://www.framer.com/api/motion/utilities/#usedragcontrols – markdesign May 21 '20 at 02:22

0 Answers0