Skip to main content
Solved

Component animation

  • January 25, 2025
  • 2 replies
  • 45 views

MikeGorgone

Hi Everyone,

Hoping to get some help with component animation. I have two components. The first component has a bar in it that uses after delay and smart animation to change the color of the bar from green to yellow to red over 10s.

The second component uses the first component and animates the first component across the screen, left to right, over 10s. Basically I’m trying to make it look like a timer that is counting down and changing colors the closer it gets to zero.

However, when I drop the 2nd component into a frame and run the prototype the 2nd component animation runs first and the once it’s done moving left to right THEN the 1st component’s animation of changing the bar’s colors runs. Is there a way to get the animations for both components to run at the same time?

I’ve added some screen shots to hopefully help visualize things. In the bottom right you can see the green bar moved across the screen, once that was done then it changed from green to yellow to red. Again I’d like that color change to happen while the bar is moving from left to right.


 

Best answer by Avokadomos

Instead of animating the first component with delays, make the whole animation in the second component, and just transition between the variants with smart animation.

Check out the example here

View original

2 replies

Avokadomos
  • Active Member
  • 377 replies
  • Answer
  • January 26, 2025

Instead of animating the first component with delays, make the whole animation in the second component, and just transition between the variants with smart animation.

Check out the example here


MikeGorgone
  • Author
  • New Member
  • 1 reply
  • January 27, 2025

Thanks Avokadomos, that worked for me. I did a little more tweaking so the fade wasn’t happening across the entire movement and closer to when the transition needed to happen (a little more instantly but not  completely instant).

 

Cheers,

 

Mike


Reply


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