bespoke-mouse
v0.1.0
Published
Mouse support for Bespoke.js
Downloads
2
Readme
bespoke-mouse
Mouse 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-mouse.js
in your page.
Then, simply include the plugin when instantiating your presentation.
bespoke.from('article', {
mouse: true
});
By default, bespoke-mouse navigates to next slide on left click or when mouse wheel is moved down and navigates to previous slide on right click or when mouse wheel is moved up.
If you want to allow navigation only on click, use the 'click' option:
bespoke.from('article', {
mouse: 'click'
});
Or, if you want to allow navigation only on mousewheel, use the 'wheel' option:
bespoke.from('article', {
mouse: 'wheel'
});
Package managers
Bower
$ bower install bespoke-mouse
npm
$ npm install bespoke-mouse
The bespoke-mouse npm package is designed for use with browserify, e.g.
require('bespoke');
require('bespoke-mouse');
Credits
This plugin was built with generator-bespokeplugin.