0.0.101 • Published 6 years ago
@arted/scroll v0.0.101
@arted/scroll
Arted scroll
Installation
npm
$ npm install @arted/scroll
or yarn
$ yarn add @arted/scroll
Usage
import Scroll from '@arted/scroll';
// 创建滚动
const scroll = new Scroll('#el');
// 添加滚动事件
scroll.on('scroll', e => {
// do something;
});
// 销毁滚动
scroll.destroy();