AE—转场小动画
北京/UI设计师/8年前/496浏览
版权
AE—转场小动画
今天学了一个不错的动画噢!坚持每天学一点,并且动手练习噢!
(为文字添加弹弹跳效果,这个特别棒,记得收藏哦!)
freq: 频率,数值越小弹动越缓慢;
decay: 衰变,数值越小重复弹动的越多;
duration:持续时间,数值越小动画播放越快
freq = 1;
decay = 6;
duration = 0.25;
retard = textIndex*thisComp.frameDuration*1;
t = time - (inPoint + retard);
startVal = [100,100,100];
endVal = [0,0,0];
if (t < duration){
linear(t,0,duration,startVal,endVal);
}else{
amp = (endVal - startVal)/duration;
w = freq*Math.PI*2;
endVal + amp*(Math.sin((t-duration)*w)/Math.exp(decay*(t-duration))/w);
}
2
Report
声明
2
Share
相关推荐
in to comment
Add emoji
喜欢TA的作品吗?喜欢就快来夸夸TA吧!
You may like
相关收藏夹
Log in
2Log in and synchronize recommended records
2Log in and add to My Favorites
评论Log in and comment your thoughts
分享Share






















































