-
Inertial text Animator, Animate off at out outpoint
I have the expression below that automatically animates text on using whatever parameters you set at the layer inpoint. How do you alter the expression to make the text also reverse the same animation at the outpoint of the layer?
freq = .25;
decay = 20;
delay = .05;
dur = .15;
myDelay = (textIndex-1)*delay;
t = time – (inPoint + myDelay);
startVal = 100;
endVal = 0;
if(t < dur){ linear(t,0,dur,startVal,endVal); }else{ amp = (endVal – startVal)/dur; w = freq*Math.PI*2; endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w); }