-
smooth oscillation between keyframes?
Hello!
I have this expression to smoothly oscillate a shape layer between two points:
y=value[1];
a=20;
p=effect("X Position Offset")("Slider")*10;
f=effect("Frequency Slider")("Slider")/5;
x=[Math.cos(time*Math.PI*f)*a]+p;
[x,y]I would like to keyframe the frequency slider to smoothly transition from one frequency to a higher frequency, but when I add keyframes to the slider the frequency goes berzerk between the keyframes. Is there a way to make the transition smooth?
Thank you!