reveal-css-snippet
A Reveal.js plugin that allows live CSS editing in code blocks.
Installation
Using npm:
npm install --save reveal-css-snippet
Demo
Play with it on Codepen!
Usage
RevealCSSSnippet()
returns a <pre><code>
DOM node that allows you to live edit the presentations css styles which is useful for giving live coding demo's. You can then append this DOM node to any element in the presentation that you wish.
Optionally, you can pass in an object with two properties defined below. Both are optional:
;
Examples
Presentation Wide CSS Snippet:
HTML:
<!-- This section is a slide. --> CSS Snippet Example
In Reveal.initialize [index.html]:
// https://github.com/hakimel/reveal.js#configurationReveal
Element Scoped CSS Snippet:
HTML:
<!-- This section is a slide. --> CSS Snippet Example
In Reveal.initialize [index.html]:
// https://github.com/hakimel/reveal.js#configurationReveal
License
The MIT License (MIT)