来自:pklala12,在AE中实现小球的滚动效果,MAD中比较常见:
X轴打关键帧,表达式如下:
x=transform.position[0]; y=transform.position[1]; decay=.3; if(Math.sin(time*5)<0) y=y*Math.sin(time*5)/Math.exp(decay*time); else y=-y*Math.sin(time*5)/Math.exp(decay*time); [x,y]+value