Skip to content

Commit

Permalink
Merge pull request #368 from Mogztter/issue-367-configure-autoslide
Browse files Browse the repository at this point in the history
resolves #367 allow to configure autoslide timer per slide
  • Loading branch information
obilodeau authored May 27, 2020
2 parents 2eb03a5 + 81536f9 commit 960ce32
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions examples/autoslide.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
= Autoslide!
// automatically proceed to the next slide after 5 seconds
:revealjs_autoSlide: 5000

== Slide 0

I can do it in 5 seconds!

// on this slide we need 10 seconds
[autoslide=10000]
== Slide 1

All things considered, let's try again in 10 seconds.

[autoslide=1000]
== Slide 2

Don't blink or you'll miss me :)

== Slide 3

(:
1 change: 1 addition & 0 deletions templates/section.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
data-background-video-loop=((attr? 'background-video-loop') || (option? 'loop'))
data-background-video-muted=((attr? 'background-video-muted') || (option? 'muted'))
data-background-opacity=(attr "background-opacity")
data-autoslide=(attr "autoslide")
data-state=(attr 'state'))
- unless hide_title
h2=section_title
Expand Down

0 comments on commit 960ce32

Please sign in to comment.