Skip to main content
Question

Nested looping animations don't play in prototypes

  • May 21, 2024
  • 1 reply
  • 116 views

Axel_RocketMoney

I tried creating a prototype that has nested component animating on a loop, however Figma stops the looping animation when it’s being moved in another frame.

Here’s what I did

  1. Create a square component that changes color from red to blue After Delay on a loop
  2. Put square component into another frame that animates moving that square
  3. The looping color animation will STOP when being moved

Here is my file demonstrating the issue:

Figma – 21 May 24

Any ideas or workarounds to get this working?

I would expect Figma to respect the current state of the nested components, however Figma seems to reset the nested component state to the beginning while the parent is moving it.

This topic has been closed for comments

1 reply

Vishal_Ramawat

Yes, I had similar issue while trying to make a flapping bird move across the screen.
The only way I could get it done was using a variable to change the padding of the bird so as to simulate movement.

Another thing to note is, the After Delay in swapping Movement variants (80ms) should be more than After Delay in Child variant swapping (75ms)

Hope this will help you in figuring out a solution for your use case.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings