-
2 Expressions, one slot
Hi,
I am trying to get these two expressions to work together. Currently, only the out animation (Bottom) is working. I would like to get them both working together based on the delay numbers.
It is a scale expression I am using on a circle to get an overshoot effect.
freq = 3;
decay = 5;
maxDelay = 1.0;
outDelay = 4.0;Delay = maxDelay;
t = time - (inPoint + Delay);
startVal = [0,0];
endVal = [100,100];
dur = 0.1;
if (t < dur){
easeIn(t,0,dur,startVal,endVal);
}else{
amp = (endVal - startVal)/dur;
w = freq*Math.PI*2;
endVal + amp*(Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w);}
Delay = outDelay;
t = time - (Delay);
startVal = [100,100];
endVal = [0,0];
dur = 0.2;
{
easeIn(t,0,dur,startVal,endVal);
}