Open zhishu520 opened 5 years ago
前端做动画的时候肯定会用到一些动画缓冲曲线模型,这里做下记录。
EaseIn EaseOut EaseInOut
QuadEaseIn QuadEaseOut QuadEaseInOut
CubicEaseIn CubicEaseOut CubicEaseInOut
QuartEaseIn QuartEaseOut QuartEaseInOut
QuintEaseIn QuintEaseOut QuintEaseInOut
EaseExponentialIn EaseExponentialOut EaseExponentialInOut
SineEaseIn SineEaseOut SineEaseInOut
CircEaseIn CircEaseOut CircEaseInOut
BackEaseIn BackEaseOut BackEaseInOut
ElasticEaseIn ElasticEaseOut ElasticEaseInOut
BounceEaseIn BounceEaseOut BounceEaseInOut
EaseBezierAction 因为有参数,不好绘画,这里给出一个网站http://cubic-bezier.com
EaseIn,EaseOut,EaseInOut 使用的rate为常用的2.0,其他靠脑补。。。。(rate越高曲线越陡峭,1.0的时候就是条直线)
图形取自源码CCTweenFunction.cpp,并在https://www.desmos.com上绘制。
前端做动画的时候肯定会用到一些动画缓冲曲线模型,这里做下记录。
EaseIn EaseOut EaseInOut
QuadEaseIn QuadEaseOut QuadEaseInOut
CubicEaseIn CubicEaseOut CubicEaseInOut
QuartEaseIn QuartEaseOut QuartEaseInOut
QuintEaseIn QuintEaseOut QuintEaseInOut
EaseExponentialIn EaseExponentialOut EaseExponentialInOut
SineEaseIn SineEaseOut SineEaseInOut
CircEaseIn CircEaseOut CircEaseInOut
BackEaseIn BackEaseOut BackEaseInOut
ElasticEaseIn ElasticEaseOut ElasticEaseInOut
BounceEaseIn BounceEaseOut BounceEaseInOut
说明
EaseBezierAction 因为有参数,不好绘画,这里给出一个网站http://cubic-bezier.com
EaseIn,EaseOut,EaseInOut 使用的rate为常用的2.0,其他靠脑补。。。。(rate越高曲线越陡峭,1.0的时候就是条直线)
图形取自源码CCTweenFunction.cpp,并在https://www.desmos.com上绘制。