【文件属性】:
文件名称:onscroll-animation:元素在视图中时的Javascript滚动动画
文件大小:1.44MB
文件格式:ZIP
更新时间:2021-05-14 05:18:00
JavaScript
OnScroll动画
滚动浏览器时,当元素在视图中时,动画的简单javascript库。
:rocket:
:gear: 安装
选项A。
NPM安装
npm install onscroll-animation --save
进口:
import OnScrollAnimation from "onscroll-animation" ;
const animate = new OnScrollAnimation ( {
...
} ) ;
选项B。
使用CDN-直接从jsDelivr CDN加载
< script src =" https://cdn.jsdelivr.net/npm/onscroll-animation@latest/dist/animate.bundle.js " > </ script >
< script >
var animate = new OnScrollAnima
【文件预览】:
onscroll-animation-master
----webpack.config.js(416B)
----src()
--------cssToJs.js(1KB)
--------exceptions.js(576B)
--------animate.test.js(768B)
--------animate.js(4KB)
----examples()
--------asset()
--------box.html(2KB)
--------articles.html(23KB)
--------website.html(10KB)
----.travis.yml(50B)
----LICENSE(1KB)
----README.md(9KB)
----.gitignore(19B)
----package-lock.json(204KB)
----package.json(1KB)