zengqingxiao / curveAnimation

曲线动画

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

简介

对曲线动画的兼容性处理

预览

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)

About

曲线动画


Languages

Language:JavaScript 100.0%