Slide Builder

Scriptable reveal.js fragments

github.com/benfoxall/slide-builder

fragment functions

new SlideBuilder(el)
  .fragments([
    () => setText('Fragment One'),
    () => setText('Fragment Two')
  ])

works by appending empty .fragment elements and listening for relevant fragmentshown events

Example

setup/teardown

new SlideBuilder(el)
  .shown(initializeSlide)
  .hidden(teardownSlide)

Useful for complex/heavy animations

github

benfoxall/slide-builder