Deck status classes for Bespoke.js
Download the production version or the development version, or use a package manager.
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()
]);
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 |
$ npm install bespoke-classes
$ bower install bespoke-classes
This plugin was built with generator-bespokeplugin.