1.0.1 • Published 10 years ago

slide-controls v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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