【文件属性】:
文件名称:horwheel:用鼠标滚轮水平滚动
文件大小:8KB
文件格式:ZIP
更新时间:2021-04-23 19:27:51
HTML
霍轮
使用鼠标滚轮水平滚动。
安装
$ npm install horwheel
$ bower install horwheel
也可以在cdnjs上使用(即将推出)
< script src =" https://cdnjs.cloudflare.com/ajax/libs/horwheel/1.0.0/horwheel.min.js " > </ script >
用法
首先,需要飞轮:
const horwheel = require ( 'horwheel' ) ;
然后,定义包装器:
const wrapper = document . querySelector ( '#wrapper' ) ;
最后,使用wrapper参数执行horwheel函数:
horwheel ( wrapper ) ;
用法
浏览器支持
Chrome(OS X,Windows)
F
【文件预览】:
horwheel-master
----.travis.yml(156B)
----.eslintrc(309B)
----index.js(548B)
----browserify.js(348B)
----package.json(801B)
----test()
--------index.html(4KB)
----LICENSE(1KB)
----dist()
--------horwheel.min.js.map(1KB)
--------horwheel.js(1KB)
--------horwheel.min.js(1KB)
----.gitignore(115B)
----.npmrc(203B)
----README.md(2KB)
----bower.json(452B)
----.editorconfig(207B)