项目作者: jkcaptain

项目描述 :
jquery animate动画的简单实现
高级语言: JavaScript
项目地址: git://github.com/jkcaptain/simpleAnimate.git
创建时间: 2018-02-23T06:48:02Z
项目社区:https://github.com/jkcaptain/simpleAnimate

开源协议:

下载


simpleAnimate

jquery animate动画的简单实现

主要是提供动画实现的思路,动画时各种边界情况暂时未处理。动画队列暂时没有精力去研究。

用法:

可参照 simpleAnimate.html,和jQuery animate的用法类似。

  1. window.simpleAnimate(element, {
  2. top: 600,
  3. width: 200,
  4. height: 200
  5. }, time, easingFun);

希望能给大家带来帮助。如有错误之处,还望指出。

参考资料

https://github.com/zhangxinxu/Tween/blob/master/tween.js

http://www.cnblogs.com/aaronjs/p/4278660.html

https://github.com/akira-cn/animator.js/blob/master/lib/animator.js