vanillajs-scrollspy:纯JavaScript中的ScrollSpy

时间:2021-05-17 03:53:01
【文件属性】:
文件名称:vanillajs-scrollspy:纯JavaScript中的ScrollSpy
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-17 03:53:01
pure-javascript scrollspy scrollable JavaScript VanillaJS ScrollSpy 纯JavaScript中的ScrollSpy。 浏览器支持 IE 10以上 :check_mark: 最新的 :check_mark: 最新的 :check_mark: 最新的 :check_mark: 最新的 :check_mark: 安装 $ npm install vanillajs-scrollspy --save 如何使用 const scrollspy = new VanillaScrollspy ( menu , speed , easing ) ; scrollspy . init ( ) ; 菜单:菜单选择器(#id,.class,...) 速度(可选):滚动速度,默认值2000 缓动(可选):滚动类型'easeOutSine' , 'easeInOutSine'或'easeInOutQuint' ,默认值'easeInOutQuint' ES6 import VanillaScrollspy from 'vani
【文件预览】:
vanillajs-scrollspy-master
----.eslintrc.json(159B)
----.gitignore(922B)
----.babelrc(26B)
----package.json(2KB)
----src()
--------index.js(3KB)
----LICENSE.md(1KB)
----.travis.yml(153B)
----CONTRIBUTING.md(452B)
----webpack.config.babel.js(517B)
----dist()
--------vanillajs-scrollspy.min.js(3KB)
--------vanillajs-scrollspy.min.js.map(9KB)
--------vanillajs-scrollspy.js.map(9KB)
--------vanillajs-scrollspy.js(8KB)
----index.js(49B)
----examples()
--------index.html(3KB)
----README.md(6KB)
----tests()
--------index.spec.js(2KB)
----lib()
--------index.js(4KB)
--------index2.js(3KB)
----.editorconfig(147B)

网友评论