对曲线动画的兼容性处理
https://zengqingxiao.github.io/CA/
https://github.com/zengqingxiao/curveAnimation.git
- change.js 和 component.js 文件
/**
* @param {Number} 开始数据 (px)
* @param {Number} 结束距离 (px)
* @param {Number | String} 需要时间(ms,s)
* @param {string} 使用曲线类型
**/
Math.animation(from, to, duration, easing, callback)