bloody-streamtimer
0.0.0 • Public • Published stream-timer
install
$ npm install bloody-streamtimer
require
var timer = require("bloody-streamtimer")
api
timer(duration=0) > stream
creates a timer that emits data from 0
to 1
while running the timer.
example
timer(300)
.pipe(stream.create(curr){
element.style.top = String(curr * -100) + "%"
})
.on("end", function(){
element.style.visibility = "hidden"
})
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads