ola::water_wave:用于插入数字的平滑动画库

时间:2024-03-12 01:43:36
【文件属性】:

文件名称:ola::water_wave:用于插入数字的平滑动画库

文件大小:2.41MB

文件格式:ZIP

更新时间:2024-03-12 01:43:36

JavaScript

奥拉 流畅的动画库 /实时数字: // Start tracking the value const pos = Ola ( { y : 0 } ) ; // Set the value to update async pos . set ( { y : 100 } ) ; // Read the evolution over time setInterval ( ( ) => graph ( pos . y ) , 5 ) ; 它适用于多个值/维度: const pos = Ola ( { x : 0 , y : 0 } ) ; window . addEventListener ( 'click' , e => { pos . set ( { x : e . pageX , y : e . pageY } ) ; } ) ; setInterval ( ( ) => {


【文件预览】:
ola-master
----.gitignore(943B)
----ola.test.js(7KB)
----package.json(1KB)
----LICENSE(1KB)
----ola.min.js(2KB)
----.github()
--------FUNDING.yml(52B)
--------workflows()
----readme.md(8KB)
----docs()
--------line.gif(873KB)
--------index.js(1KB)
--------dots.gif(838KB)
--------smooth_ola.png(46KB)
--------line.mp4(136KB)
--------style.css(638B)
--------index.html(757B)
--------smooth_tweenmax.png(37KB)
--------compare()
--------ball.gif(562KB)
----ola.js(3KB)

网友评论