[Solved] How to do such animation via scripting [anim.gif]

Hi All,
how can i make such color change animation in JS without using Animation? (see attached .gif file)
-circles are added dynamically.
-it should start on button click.

any tip would greatly help, thanks.
1923050--124165--anim.gif

Why don’t you want to use Animation / Animator ?

Sbizz,
because there will be many circles, and 2 of them will be chosen randomly and be animated like in the picture…
any ideas?

use an easing system… like itween or leantween or dotween or GitHub - rakkarage/Ease: Simple Unity3D Easing

Ease3.GoColorTo(this, Color.black.GetVector3(), 1f, null, Fade, EaseType.BounceOut, .5f);
1 Like

Thank you guys!
Solved the problem by using LeanTween.

1 Like