Replies: 2 comments 1 reply
-
Do you use/need vertical slides? If not, those can serve this purpose. You can hide the navigation arrows ( If you use Markdown, you can split the content into several "External" Markdown files (whether on the same site/domain or different). Then you could comment out loading of specific files in your |
Beta Was this translation helpful? Give feedback.
-
FYI, this is how I currently solve it - but it would be great if Reveal.js officially supports this Reveal.on('slidechanged', (event) => {
if (event.currentSlide.hasAttribute("data-visibility") && !Reveal.isOverview()) {
const prevIndices = Reveal.getIndices(event.previousSlide);
const currentIndices = Reveal.getIndices(event.currentSlide);
if (prevIndices.h < currentIndices.h || (prevIndices.h === currentIndices.h && prevIndices.v < currentIndices.v)) {
Reveal.next();
} else if (prevIndices.h > currentIndices.h || (prevIndices.h === currentIndices.h && prevIndices.v > currentIndices.v)) {
Reveal.prev();
}
}
}); ^aka. If the slide is changed, and the current slide that it was changed to has the attribute "data-visibility" then we assume we want to skip it. In that case we use Reveal.next or prev depending on the direction we changed (and if we have a next/prev slide). Final check is to make sure that we 'can' select the slide in the overview which is why we have NOTE: I wrote this an hour before a conference presentation so suffice it to say that I did not investigate if there was an API method for the long if statements, etc... it works - but its probably not optimal |
Beta Was this translation helpful? Give feedback.
-
Use case
You are creating a presentation and want to trim down on the amount of content. Currently you can use
data-visibility="hidden"
to hide the slides - but that also means that you have no way of using those slides in your presentation. The documentation proposes 'uncounted' slides for this use case - but this means that you should move the slides from their logical (2D) position to the back of your presentation. Instead I propose:data-visibility="skipped"
In essence it is very similar to hidden slides, but not in the 'overview'.
Behaviour
'skipped slides' should not be shown during normal navigation, they should not be counted in the total progress but unlike
data-visibility="hidden"
it should still be possible to select them in the overview.Beta Was this translation helpful? Give feedback.
All reactions