1.0.0 • Published 10 years ago

bespoke-camera v1.0.0

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

bespoke-camera

See you during your bespoke presentation!

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

bespoke.from('article', [
  camera()
]);

When using browser globals:

bespoke.from('article', [
  bespoke.plugins.camera()
]);

Then add a data-camera property in each slide you want to display your video, like so:

<article>
  <section data-camera>
    <p>This slide has a camera</p>
  </section>
  <section>
    <p>This slide has not</p>
  </section>
  <section data-camera="fullscreen">
    <p>This slide has a camera in fullscreen</p>
  </section>
</article>

Plus, click on the video to put it full-screen!

Package managers

npm

$ npm install bespoke-camera

Bower

$ bower install bespoke-camera

Credits

This plugin was built with generator-bespokeplugin.

License

MIT License

1.0.0

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago