-
Text Auto Fade Out Expression
Hello Creatives,
Hopefully a simple expression help request! I often use text expressions to have text fade on, either with Characters, Words or Lines as set by the Based On drop-down, from the layer in point with a delay function to control the speed of that (example further below).
However, I’m stuck on how to then have an the text fade out too based on the layer out point, ideally as a separate expression so I can set the Based On to something other (typically Lines). Any suggestions greatly appreciated!
delay = .04;
myDelay = delay*textIndex;
t = (time - inPoint) - myDelay;
if (t >= 0) {
freq =0;
amplitude = 100;
decay = 4.0;
s = amplitude*Math.cos(freq*t*0*Math.PI) /Math.exp(decay*t);
[s,s]
}else{
value
}