Skip to content

Reveal JS

UUoocl edited this page Jan 11, 2025 · 1 revision

Navigate to Slide by Name

//Get slides attributes Reveal.getSlidesAttributes(); Filter the

const slidesAttributes = Reveal.getSlidesAttributes();

Reveal.on('ready', (event) => {
	slidesAttributes = Reveal.getSlidesAttributes();	
});

//on Custom event
obs.on(CustomEvent, (event) => {
	
	const slide = slidesAttributes.filter(slideAttribute => slideAttribute.slideName === event.event_data.slideName);
	Reveal.slide(slide[0].indexh, slide[0].indexv);

}
{
slide: [[Reveal demo deck]],
page: 0
}

Reveal for Obsidian

###Frontmatter options

Name Description Possible Values Default Value
autoSlide Controls automatic progression to the next slide number (in milliseconds) 0
bg Sets a default background for all slides see slide background docs ‘#ffffff’
center Vertical centering of slides true / false true
controls Display presentation control arrows true / false true
controlsLayout Determines where controls appear edges / bottom-right bottom-right
css Adds further css files []
defaultTemplate Sets a template that will be applied to all slides see template docs null
enableChalkboard Activates the chalkboard for slides true / false false
enableLinks Enable backlinks in slides true / false false
enableOverview Shows the Overview Button on the bottom right corner of the slide true / false false
enableTimeBar Activates elapsing timer bar for slides true / false false
fragments Turns fragments on and off globally true / false true
height Sets the width of the presentation number 700:
highlightTheme Sets the highlight theme see theme docs zenburn
loop Loop the presentation true / false false
margin Empty space around the content number 0.04:
markdown Sets options for marked (see note below) (see note below)
maxScale Bounds for largest possible scale to apply to content number 2.0
minScale Bounds for smallest possible scale to apply to content number 0.2
notesSeparator Sets the note delimiter string note:
overview Enable the slide overview mode true / false true
progress Display a presentation progress bar true / false true
rtl Change the presentation direction to be RTL true / false false
separator Sets the slide separator string ^( ?| )—( ?| )$
showNotes Flags if speaker notes should be visible to all viewers true / false false
shuffle Randomizes the order of slides each time the presentation loads true / false false
slideNumber Display the page number of the current slide see reveal.js docs false
theme Sets the theme see theme docs black
timeForPresentation Sets the time for elapsing timer in seconds number 120
transition Transition style none / fade / slide / convex / concave / zoom slide
transitionSpeed Transition speed default / fast / slow default
verticalSeparator Sets the vertical slide separator string ^( ?| )–( ?| )$
width Sets the width of the presentation number 960
Clone this wiki locally