Skip to content

Instantly share code, notes, and snippets.

@matoken
Created September 16, 2020 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matoken/88bb00209f2924d0a5648be143be15fd to your computer and use it in GitHub Desktop.
Save matoken/88bb00209f2924d0a5648be143be15fd to your computer and use it in GitHub Desktop.

Reveal.js自動スライド

Reveal.jsはサイネージに使えるか?

Reveal.jsのAuto Slideでそれらしいことができそう?

// Slide every five seconds
Reveal.initialize({
  autoSlide: 5000,
  loop: true
});

5秒ごとにスライドをめくって,スライドがループする

asciidoctor-reveal.jsでは

:revealjs_autoSlide: 5000
:revealjs_loop: true

メディアを使う場合は :revealjs_autoPlayMedia: true も必要そう

環境

$ asciidoctor-revealjs-linux --version
Asciidoctor reveal.js 4.0.1 using Asciidoctor.js 2.1.1 (Asciidoctor 2.0.10) [https://asciidoctor.org]
Runtime Environment (node v12.13.1 on linux)
CLI version 3.1.0
$ git -C ~/src/reveal.js log --oneline -1
17bfa62 (HEAD -> master, origin/master, origin/HEAD) Merge pull request #2746 from ebriand/patch-1

最終ページ

このあと頭に戻ってloopするはず

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment