slide-controls

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i slide-controls

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • timhudson