0.1.0 • Published 10 years ago

bespoke-mouse v0.1.0

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

Build Status

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.

License

MIT License