Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Build Status

bespoke-touch

Touch Support for Bespoke.js

Download

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

Usage

First, include both bespoke.js and bespoke-touch.js in your page.

Then, simply include the plugin when instantiating your presentation.

bespoke.from('article', {
  touch: true
});

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

Bower

$ bower install bespoke-touch

npm

$ npm install bespoke-touch

The bespoke-touch npm package is designed for use with browserify, e.g.

require('bespoke');
require('bespoke-touch');

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License