slide-controls

Add arrow-key listeners for controlling slide-state

Usage no npm install needed!

<script type="module">
  import slideControls from 'https://cdn.skypack.dev/slide-controls';
</script>

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