From the course: reveal.js: Online Presentations

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating an auto-play presentation

Creating an auto-play presentation

From the course: reveal.js: Online Presentations

Start my 1-month free trial

Creating an auto-play presentation

Reveal.js allows you to autoplay either your whole presentation or parts of your presentation. That can be useful if you're trying to do a pecha kucha, an Ignite presentation, or if you're simply trying to showcase a series of slides in order. To set your entire presentation to autoslide, all you have to do is modify the initialize object. That's usually at the very bottom of your presentation. So, we can do this anywhere in this sequence right here. I'll put it after the progress parameter, and I'm going to add an auto slide parameter right here. You want to make that this S is capitalized or it won't work, and then you want to add a number. Now the number is in milliseconds, so 3000 would mean three seconds. We save this, we switch over to our presentation and we refresh the page. Now you gotta wait for it, there it goes. So every three seconds, it's going to switch through and show you a different slide. Now even when it gets to the part that the slides are vertical, you'll see…

Contents