breeze-touch
v0.0.0
Published
This is a mobile touch plug-in based on native JavaScript developed.
Downloads
6
Readme
breeze-touch
这是一个基于原生JavaScript开发的简单自定义滑动插件
版本
0.0.0
安装
使用npm下载源文件
npm install breeze-touch --save
直接使用script引用
<script src="../dist/breeze-touch-0.0.0.min.js"></script>
使用
<script>
var boxHeight = document.getElementById('box').clientHeight;
var windowHeight = window.innerHeight;
var slideDistance = boxHeight - windowHeight;
breezeTouch({
pickerSlide: box,
slideDistance: slideDistance
});
</script>
参数
| 参数 | 类型 | 默认值 | 说明 | |-------------------|----------|----------|-------------------------------------| | pickerSlide | String | “” | 待滑动盒子 | | slideDistance | String | “” | 滑动最大值 |
演示
如果你感觉好用,欢迎给我打赏