文件名称:tweeny:一个青少年的补间课程
文件大小:10KB
文件格式:ZIP
更新时间:2024-06-01 16:31:21
JavaScript
吐温 一个小小的补间课程! npm install --save tweeny 用法 var Tween = require ( 'tweeny' ) var easeInOutQuart = require ( 'tweeny/easing/easeInOutQuart' ) var target = document . querySelector ( '#thing' ) var tween = new Tween ( { from : { opacity : 0 } , to : { opacity : 1 } , duration : 1000 , easing : easeInOutQuart , onUpdate : function ( state ) { target . style . opacity = state .
【文件预览】:
tweeny-master
----easing()
--------easeOutQuint.js(94B)
--------easeInOutElastic.js(429B)
--------easeInOutCirc.js(172B)
--------easeInOutQuint.js(143B)
--------easeOutSine.js(99B)
--------easeInQuint.js(87B)
--------easeInOutSine.js(104B)
--------easeOutExpo.js(118B)
--------easeInOutQuart.js(143B)
--------easeOutBack.js(141B)
--------easeOutElastic.js(318B)
--------linear.js(72B)
--------easeOutQuad.js(86B)
--------easeInQuad.js(79B)
--------easeInQuart.js(84B)
--------easeInElastic.js(320B)
--------easeOutQuart.js(95B)
--------easeInOutExpo.js(219B)
--------easeInSine.js(104B)
--------easeInOutCubic.js(135B)
--------easeInBack.js(133B)
--------easeInOutBack.js(222B)
--------easeOutBounce.js(355B)
--------easeInExpo.js(112B)
--------easeInOutQuad.js(137B)
--------easeOutCirc.js(99B)
--------easeInCubic.js(83B)
--------easeInCirc.js(103B)
----LICENSE(1KB)
----README.md(617B)
----.gitignore(23B)
----index.js(1KB)
----package.json(562B)