Slide-specific deck styles for Bespoke.js
Style your entire deck differently based on the active slide.
Classes specified in
data-bespoke-state attributes will be added to the deck's parent element when the slide is activated.
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'), state = require('bespoke-state'); bespoke.from('article', [ state() ]);
When using browser globals:
bespoke.from('article', [ bespoke.plugins.state() ]);
data-bespoke-state attributes to your slides.
<article> <section> Regular deck style </section> <section data-bespoke-state="special"> Special deck style </section> <section data-bespoke-state="super special"> Super special deck style </section> <section> Regular deck style </section> </article>
$ npm install bespoke-state
$ bower install bespoke-state
This plugin was built with generator-bespokeplugin.