1.2.0 • Published 11 years ago
jquery-dreamstream v1.2.0
jQuery Dream Stream
A simple vertical list scroller plugin for jQuery.
Installation
via npm:
$ npm install jquery-dreamstreamUse
Wrap your <ul> of stream items in a container and call the $.dreamStream() method on it:
HTML:
<div class="dream-stream">
<ul>
<li>Stream Item 1</li>
<li>Stream Item 2</li>
<li>Stream Item 3</li>
</ul>
</div>Using with CommonJS:
var $ = require('jquery');
require('jquery-dreamstream')($);
$('.dream-stream').dreamStream();Using with script tags:
To generate a script tag ready jQuery plugin, do:
$ npm install && npm run buildThe compiled file will be output to jquery.dreamstream.js.
<script src="path/to/jquery.js"></script>
<script src="jquery.dreamstream.js"></script>
<script>
$('.dreamStream').dreamStream();
</script>Options
Alternatively, you can call dreamStream() with options:
$('.dream-stream').dreamStream({
interval : 2000,
speed : 200,
direction : 'up',
onAfterScroll: function() { console.log('hey, scroll just finished') }
});Events
Trigger a pause event:
$('.dream-stream').trigger('dreamStream:pause');Trigger a resume event:
$('.dream-stream').trigger('dreamStream:resume');1.2.0
11 years ago
1.1.6
11 years ago
1.1.5
11 years ago
1.1.4
11 years ago
1.1.3
11 years ago
1.1.2
11 years ago
1.1.1
11 years ago
1.1.0
11 years ago
1.0.0
11 years ago
0.1.8
12 years ago
0.1.7
12 years ago
0.1.6
12 years ago
0.1.5
12 years ago
0.1.4
12 years ago
0.1.3
12 years ago
0.1.2
12 years ago
0.1.1
12 years ago
0.1.0
12 years ago