Transitions
Enabling transitions
When presenting, you may want to transition between slides. Enable transitions with this command:
slide-transition: true
Transition styles
The following transition styles are available:
fade— crossfades between slides (default).fadeThroughColor(#000000)— fades through a color, into the next slide. Pass the color as a hex value in parentheses.push(horizontal|vertical|top|right|bottom|left)— the next slide pushes the previous one out of the viewport. Usehorizontalorvertical(or a direction) to control the movement when advancing or going back.move(horizontal|vertical|top|right|bottom|left)— the next slide moves over the top of the current slide. Direction parameters work the same way as withpush.reveal(horizontal|vertical|top|right|bottom|left)— the current slide moves away to reveal the next slide underneath. Direction parameters again control the direction of travel when moving forward or backward.flip(horizontal|vertical|top|right|bottom|left)— flips between slides with a 3D card-like motion.horizontalandverticalchoose the default forward/backward hinge direction.wipe(horizontal|vertical|top|right|bottom|left)— reveals the next slide with an edge wipe.horizontalandverticalmap to forward/backward wipe directions.zoom— scales and fades between slides.barnDoor(horizontal|vertical)— opens the current slide away from the center like two doors.wipeFromCenter(horizontal|vertical)— reveals the next slide from the center outward using a rectangular wipe.iris— reveals the next slide from the center outward.spotlight— hides the current slide into the center.
You can choose one of these transitions by specifying it in the command:
slide-transition: push(0.3, vertical)
Transition timing
You can control the duration of the transition by passing in the value in seconds:
slide-transition: fade(0.3)
Transitions on individual slides
You may also use the transition command on a single slide, for example: [.slide-transition: push(0.3, horizontal)], [.slide-transition: zoom(0.4)], [.slide-transition: barnDoor(0.5, vertical)], [.slide-transition: wipeFromCenter(0.5, horizontal)], [.slide-transition: iris(0.5)], or [.slide-transition: false].