Skip to content
Office Open

PPTX

Transitions

Add slide transition effects such as fade, push, wipe, and more

Use the transition property on slide options to add animated effects when moving between slides.

#Basic Transition

JSON
{
  "slides": [
    {
      "children": [],
      "transition": {
        "type": "fade",
        "speed": "medium"
      }
    }
  ]
}

#Slide Show Settings

Control presentation playback behavior with the show option on Presentation:

JSON
{
  "show": {
    "loop": true,
    "useTimings": true
  },
  "slides": [
    {
      "children": [
        {
          "shape": {
            "x": "0.0cm",
            "y": "0.0cm",
            "width": "5.3cm",
            "height": "2.6cm",
            "textBody": {
              "text": "Slide 1"
            }
          }
        }
      ]
    }
  ]
}

#Show Options

PropertyTypeDescription
loopbooleanLoop presentation continuously
type"present" | "browse" | "kiosk"Show type (presented / browsed / kiosk)
showScrollbarbooleanShow scrollbar (browse mode)
restartnumberRestart policy
showNarrationbooleanPlay narration during slide show
showAnimationbooleanShow animations while presenting
useTimingsbooleanUse recorded timings if available
slideRange{ start: number; end: number }Limit show to a slide range
penColorstringPresenter pen color (srgbClr hex)

#Transition Types

#Fade

json
{
  "transition": { "type": "fade" }
}

#Push

json
{
  "transition": {
    "type": "push",
    "direction": "right"
  }
}

#Wipe

json
{
  "transition": {
    "type": "wipe",
    "direction": "down"
  }
}

#Cover

json
{
  "transition": {
    "type": "cover",
    "direction": "right"
  }
}

#Split

json
{
  "transition": {
    "type": "split",
    "orient": "horz",
    "direction": "out"
  }
}

#Wheel

json
{
  "transition": {
    "type": "wheel",
    "spokes": 4
  }
}

#Dissolve

json
{
  "transition": {
    "type": "dissolve",
    "speed": "slow"
  }
}

#Random

json
{
  "transition": { "type": "random" }
}

#Transition Options

PropertyTypeDescription
typeTransitionTypeTransition type
speed"slow" | "medium" | "fast"Transition speed
directionstringDirection (depends on type)
orient"horz" | "vert"Orientation (split/blinds/checker)
spokesnumberNumber of spokes (wheel)
advanceOnClickbooleanAdvance on mouse click
advanceAfterTimenumberAuto-advance after milliseconds
thruBlkbooleanFade/cut through black
startSound{ rId; name?; loop? }Sound played on transition start
stopPreviousSoundbooleanStop a previously playing sound

#Available Types

"fade" | "push" | "wipe" | "split" | "blinds" | "checker" | "comb" | "randomBar" | "cover" | "pull" | "strips" | "wheel" | "zoom" | "circle" | "dissolve" | "diamond" | "newsflash" | "plus" | "wedge" | "random" | "cut"

#Full Example

JSON
{
  "slides": [
    {
      "children": [
        {
          "shape": {
            "x": "2.6cm",
            "y": "4.0cm",
            "width": "13.2cm",
            "height": "2.6cm",
            "textBody": {
              "text": "Welcome"
            },
            "properties": {
              "fill": "4472C4"
            }
          }
        }
      ],
      "transition": {
        "type": "fade",
        "speed": "medium"
      }
    },
    {
      "children": [
        {
          "shape": {
            "x": "2.6cm",
            "y": "4.0cm",
            "width": "13.2cm",
            "height": "2.6cm",
            "textBody": {
              "text": "Content Slide"
            },
            "properties": {
              "fill": "ED7D31"
            }
          }
        }
      ],
      "transition": {
        "type": "push",
        "direction": "right",
        "speed": "slow"
      }
    },
    {
      "children": [
        {
          "shape": {
            "x": "2.6cm",
            "y": "4.0cm",
            "width": "13.2cm",
            "height": "2.6cm",
            "textBody": {
              "text": "Thank You"
            },
            "properties": {
              "fill": "70AD47"
            }
          }
        }
      ],
      "transition": {
        "type": "wipe",
        "direction": "down"
      }
    }
  ]
}