Limarquee
A jquery plugin for infinite scroll
Install
npm install --save-dev limarquee
Structure
├── Readme.md
├── webpack.config.js
├── test
│ ├── index.css
│ ├── index.html
│ └── index.js
├── lib
│ ├── style.css
│ └── index.js
├── package.json
├── .babelrc
└── index.js
Usage
Infinite scroll work on a container element with its child of ul, and then ul contain children of li
<div class="container">
<ul>
<li>信息内容一</li>
<li>信息内容二</li>
</ul>
</div>
Options
import Limarquee from 'limarquee'
const limarquee = new Limarquee('.container')
limarquee.render({
direction: left
loop: -1
scrolldelay: 0
scrollamount: 50
circular: true
drag: true
runshort: true
hoverstop: true
xml: false
inverthover: false
})
Demo Usage
npm install
npm run server
And then, open with localhost:3333/index.html
Constribution to Limarquee
More knowledge from here