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. Use horizontal or vertical (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 with push.
  • 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. horizontal and vertical choose the default forward/backward hinge direction.
  • wipe(horizontal|vertical|top|right|bottom|left) — reveals the next slide with an edge wipe. horizontal and vertical map 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.
  • doorway — opens the current slide as two doors while the next slide approaches, with a reflection below.
  • cube — rotates the slides as faces of a cube.
  • crossZoom — combines a zoom blur with a dissolve.
  • dots — reveals the next slide through expanding dots.

You can choose one of these transitions by specifying it in the command:

slide-transition: push(0.3, vertical)

Doorway, Cube, CrossZoom, and Dots

Use these transitions on macOS or iOS with a duration in seconds:

slide-transition: doorway(0.8)

Replace doorway(0.8) with cube(0.8), crossZoom(0.7), or dots(0.7) to choose another effect.

These four effects run when advancing to the next slide. Going back or jumping to another slide skips the effect. Video, animated images, and interactive content hold a captured frame during the transition. Audio playback does not prevent the effect. If a slide cannot be captured or the effect is unavailable, Deckset uses a fade.

Web-video limitation: Videos playing inside web embeds, such as YouTube, may appear blank during these transitions. This affects the captured transition frame; the live content is shown again when the transition finishes.

Use [.slide-transition: doorway(0.8)], [.slide-transition: cube(0.8)], [.slide-transition: crossZoom(0.7)], or [.slide-transition: dots(0.7)] on an individual slide to choose its entrance. The duration must be greater than zero.

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].

Find a topic, command, or Markdown example.