HERE'S THE EXPRESSION FOR 2ND ANIMATION:
delay = 0.05;
freq = 3.0;
amplitude = 80;
decay = 8.0;
myDelay = delay * textIndex;
t = (time - inPoint) - myDelay;
if (t >= 0) {
s = amplitude * Math.cos(freq * t * 2 * Math.PI) / Math.exp(decay * t);
[s, s];
} else { value; }