-
Sequentially start animation
Hey there,
I have a stack of layers – say 5 circles – that are all animating the same way. For example, they all should scale up from 0 to 100%.
The idea is, to have them start each with a delay, so they appear sequentially. My idea would be to create a “Control Null” with a slider for and pickwhip the scale of each layer to it. I’ve already added the inertial bounce expression. So far, so good – all layers pop up as they should. Now, how can I have them start sequentially?If anyone has an idea that would be great!
Cheers. Dan
amp = .1;
freq = 2.0;
decay = 2.0;
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n--;
}}
if (n == 0){ t = 0;
}else{
t = time - key(n).time;
}
if (n > 0){
v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{value}