Skip to content

bespokejs/bespoke-classes

Repository files navigation

Build Status Coverage Status

bespoke-classes

Deck status classes 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'),
  classes = require('bespoke-classes');

bespoke.from('#presentation', [
  classes()
]);

When using browser globals:

bespoke.from('#presentation', [
  bespoke.plugins.classes()
]);

Classes

To help you create your own custom deck styles, this plugin provides the following classes:

bespoke-parent The deck's containing element
bespoke-slide Every slide element
bespoke-active The active slide
bespoke-inactive All inactive slides
bespoke-before All slides before the active slide
bespoke-before-n All slides before the active slide, with n value incrementing
bespoke-after All slides after the active slide
bespoke-after-n All slides after the active slide, with n value incrementing

Package managers

npm

$ npm install bespoke-classes

Bower

$ bower install bespoke-classes

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License