slide-controls
v1.0.1
Published
Add arrow-key listeners for controlling slide-state
Downloads
5
Readme
slide-controls
Add arrow-key listeners for controlling slide-state
Example
var slideState = require('slide-state')
var slideControls = require('slide-controls')
var state = slideState()
slideControls(state)
state(function(changes) {
console.log(changes)
})
// Use ← → to control page navigation
// and ↑ ↓ to control sub page navigation
License
MIT