npm.io
1.0.0 • Published 12 years ago

bespoke-touch

Licence
Version
1.0.0
Deps
0
Vulns
0
Weekly
0
Stars
9

Build Status Coverage Status

bespoke-touch

Touch Support for Bespoke.js

Download

Download the production version or the development version, or use a package manager.

Usage

This plugin is shipped in a UMD format, meaning that it is available as a CommonJS/AMD module or browser global.

For example, when using CommonJS modules:

var bespoke = require('bespoke'),
  touch = require('bespoke-touch');

bespoke.from('article', [
  touch()
}];

When using browser globals:

bespoke.from('article', [
  bespoke.plugins.touch()
}];

By default, bespoke-touch uses horizontal swipes to navigate the slides.

If your presentation is laid out vertically, you can allow navigation with vertical swipes using the vertical option:

bespoke.from('article', [
  touch('vertical')
]);

Package managers

npm
$ npm install bespoke-touch
Bower
$ bower install bespoke-touch

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License

Keywords