slide-builder

A tiny wrapper to make it easier to generate slides & fragments for reveal.js

Usage no npm install needed!

<script type="module">
  import slideBuilder from 'https://cdn.skypack.dev/slide-builder';
</script>

README

Slide Builder

Scriptable reveal.js fragments

Demo

A tiny wrapper to make it easier to generate slides & fragments for reveal.js

Usage

new SlideBuilder(slideElement)
  .shown(() => console.log("setup slide"))
  .fragments([
    () => console.log("fragment #1"),
    () => console.log("fragment #2"),
    () => console.log("fragment #3")
  ])
  .hidden(() => console.log("teardown slide"))