Actions
An action consists of a name, a set of possible arguments, and an effect. In this page, we describe all possible actions.
Inserting an action in the presentation is done by adding an attribute with the name of the action.
Some content.
{center}
Some other content.
The effect might be different when the attribute is attached to an element.
Some content.
{center}
Some other content.
Arguments can be added to an action. In this case, the attribute is a key-value attribute, the key being the name of the action, and the value containing the arguments.
{#one}
Some content.
{center=one}
Some other content.
An action can have two kind of arguments: named arguments, and positional ones. Named argument are of the form ~argument-name:value and positional are given as-is. The list of arguments is space-separated.
{#one}
Some content.
{center="~duration:2 ~margin:10 one"}
Some other content.
It is possible to have multiple actions in a single attribute. They will be executed at the same step.
{#one}
Some content.
{center="~duration:2 ~margin:10 one" reveal="two three"}
{#two .unrevealed}
Some other content.
{#three .unrevealed}
Some more content.
Pause attributes
pause
The pause attribute tells the slipshow engine to pause the text rendering here. This element and every element after (but inside the “pause block”) that in the document will be hidden.
When a
pauseaction is executed, the initially hidden text is displayed.
pause-blockThe
pause-blockattribute tells the slipshow engine that pauses inside it should not hide content outside of it.Example:
A {pause-block} > B > > {pause} > > C > > {pause} > > D Ewill initially display A, B and E, then going a step further will additionally display C, and another step will display D.
stepIntroduces a no-op step in the slip it’s in. Useful to exit entered slips.
Moving the window
downMoves the screen vertically until the element is at the bottom of the screen.
Accepts
~duration:FLOATandmargin:INT.upMoves the screen vertically until the element is at the top of the screen.
Accepts
~duration:FLOATandmargin:INT.centerMoves the screen vertically until the element is centered.
Accepts
~duration:FLOATandmargin:INT.scrollMoves the screen vertically until the element is entirely visible on screen, if possible.
Accepts
~duration:FLOATandmargin:INT.focusFocus on the element by zooming on it. Possible to specify multiple ids.
Accepts
~duration:FLOATandmargin:INT.unfocusUnfocus by going back to the last position before a focus.
Changing visibility
staticMake the element
static. By “static” we mean the css stylingposition:static; visibility:visiblewill be applied. Possible to specify multiple ids.unstaticMake the element
unstatic. By “unstatic” we mean the css stylingposition:absolute; visibility:hiddenwill be applied. Possible to specify multiple ids.revealReveal the element. By “revealing” we mean the css styling
opacity:1will be applied. Possible to specify multiple ids.unrevealHide the element. By “unrevealing” we mean the css styling
opacity:0will be applied. Possible to specify multiple ids.
Drawing actions
drawReplay the drawing. Possible to specify multiple ids. See the how-to Record and replay drawings and the tutorial Drawing your presentation.
clearClear the drawing. Possible to specify multiple ids.
Carousels
change-pageChanges the current page of a carousel or pdf. Takes as input the id of the carousel/pdf.
Also takes a
~n:"<pages>"argument, which allows to specify the list of pages changes to do, by absolute number (e.g.4), relative number (e.g.+1,-2), range (3-10or5-3), orallwhich displays one by one the page until completion. Default for~nis+1.For instance,
{change-page='~n:"2-4 6-4 7 -1 +2 all"'}will change pages to2,3,4,6,5,4,7,6,8and then all further pages that the pdf/carousel contains. It will always initially start with page 1.
Speaker notes
speaker-noteHides the targeted element (either with given ID, or self). When the action is executed, send the targeted element to the “Notes” section of the speaker notes (that you can open with
s).
Medias
play-mediaPlay the media (audio or video). The associated element/target id(s) need to be a video element: a
where path is recognized as a video or audio. Possible to specify multiple ids.Pay attention that browsers will prevent the playing if they consider that the user has not “interacted” with the page yet, in an effort to forbid spam “autoplay” of medias. Interact with the page (e.g. by clicking anywhere on it) to make sure it’ll work.
Custom script
execExecute the slipscript. Possible to specify multiple ids.