Home > database >  Question about effect gravity with Framer Motion
Question about effect gravity with Framer Motion

Time:04-16

I've only been using Framer Motion since today, and I wanted to know if it was possible to run several animations on an image and repeat one in particular. Basically, I would like to make an image move and then do a gravity effect on it.

CodePudding user response:

Luckily there is a fairly simple way to run multiple animations in framer motion and repeat the last one.

With the useAnimation() hook we can set up Edit framer-motion sequence of animations

  • Related