srvanimate
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

动画插件 Animate

Author lionzyp

使用方法

const anim = new Animate(options);

anim.start();

options - 动画类参数可选

@param options - duration 时间,优先执行

@param options - frames - 动画帧数,默认执行

@param options - interval - 每一帧对应的系统动画帧数

@param options - easing:'linear',

@param options - action: (v, t) => { // 要进行的动画 }, 动画类参数:执行

@param options - finishFunc: () => { // 结束时执行的函数 } 动画类参数:结束

缓动函数可选

linear/easeInQuad/easeOutQuad/easeInOutQuad/easeInCubic/

easeOutCubic/easeInOutCubic/easeInQuart/easeOutQuart/easeInOutQuart/

easeInQuint/easeOutQuint/easeInOutQuint/easeInSine/easeOutSine/easeInOutSine/

easeInExpo/easeOutExpo/easeInOutExpo/easeInCirc/easeOutCirc/easeInOutCirc/

easeOutBounce/easeInBack/easeOutBack/easeInOutBack/elastic/swingFromTo/swingFrom/

swingTo/bounce/bouncePast/easeFromTo/easeFrom/easeTo/linear/sinusoidal/

reverse/mirror/flicker/wobble/pulse/blink/spring/none/full

Readme

Keywords

none

Package Sidebar

Install

npm i srvanimate

Weekly Downloads

2

Version

1.1.7

License

ISC

Unpacked Size

50.8 kB

Total Files

4

Last publish

Collaborators

  • lionzyp