-
Quad easing
Hello,
I am trying to change this expression easing from Cubic to Quad, can anyone help me? Replacing the “Cubic” with “Quad” in the expression has been unsuccessful.
Thanks in advance.
Regards,
Obed
function easeInOutCubic(t) { return t<.5 ? 4*t*t*t : (t-1)*(2*t-2)*(2*t-2)+1 };startVal = -2000;
endVal = 0;
startDur = 1;
endDur = 2;t = ease(time,inPoint+startDur,inPoint+endDur,0,1);
e = easeInOutCubic(t);
x = ease(e,0,1,startVal,endVal);[value[0], value[1],x];