Interdimensional自动翻滚网页
Interdimensional 是一款通过重力感知,能够实现自动滚动手持设备中的网页的移动设备开发的插件。并且,只支持IOS系统,对设备的要求也比较高。
示例代码:
Interdimensional.charge({
/**
* Pixels per difference between tilts
* @type {Number}
*/
PPD: 0.8,
/**
* Minimum difference between tilts
* @type {Number}
*/
insensitivity: 5,
/**
* Use the control or not
* @type {Boolean}
*/
useControl: true,
/**
* Interdimensional control
*
* If null - default control will be used
* control: document.getElementById('myControl')
*
* @type {HTMLElement|null}
*/
control: null
});
评论
