jQuery Dream Stream
A simple vertical list scroller plugin for jQuery.
Installation
via npm:
$ npm install jquery-dreamstream
Use
Wrap your <ul>
of stream items in a container and call the $.dreamStream()
method on it:
HTML:
Stream Item 1 Stream Item 2 Stream Item 3
Using with CommonJS:
var $ = ;$; ;
Using with script tags:
To generate a script tag ready jQuery plugin, do:
$ npm install && npm run build
The compiled file will be output to jquery.dreamstream.js
.
Options
Alternatively, you can call dreamStream()
with options:
;
Events
Trigger a pause
event:
;
Trigger a resume
event:
;