columns
now create equally sized columns, no matter the content. (A empty column takes up as much width as one full of content).adaptiveColumns
has the behavior of the oldcolumns
where columns only are as big as their content needs.
- Fix compatibility with nimib v0.3.3.
- Update to use nimib v0.3.1.
slide
now accepts aSlideOptions
created throughslideOptions
proc instead of a bool. It has the following fields:autoAnimate
- same as previously, it tries to automatically animate the transition of slides.colorBackground
- set the background color of the slide.imageBackground
- set the background to an image.videoBackground
- set the background to a video file (not Youtube, use iframe for it)iframeBackground
- set the background to an iframe of a website (fullscreen).iframeInteractive
- make the iframe interactive.
- Add
showSlideNumber
template to enable showing the current slide number. - Add
useScrollWheel
template to enable stepping through the slides with the scroll wheel. columns
template to create equally wide columns:
slide:
columns:
column:
nbText: "Left column"
column:
nbText: "Right column"
footer(text: string, fontSize=20, opacity=0.6, rawHtml=false)
template to a footer to every slide. The input is a string with markdown, unless the argumentrawHtml=true
in which case it is treated as raw HTML.- The footer will be shown on all slides except those with image-, video- or iframe-backgrounds.
- Support for making lists that incrementally reveal the list items are supported using the templates
orderedList
,unorderedList
andlistItem
. addStyle
allows you to add CSS to the document.cornerImage(image: string, corner: Corner, size: int = 100)
allows you to place an image in the corners:UpperLeft, UpperRight, LowerLeft, LowerRight
.- Experimental features - the API for these are not yet stable and might change in the future:
fragmentThen
- Allows the construction of fragments likegrowThenShrink
byfragmentThen(grows, shrinks)
. The second animations happens at the same time as the next animation, reducing the number of clicks needed.align
template to simply align its content like this:align("left"):