Set an Animation

Introduction

Animation in PowerPoint presentations is a potent tool for creating interactive and engaging slides. It adds motion and transition effects between slides, making your presentation dynamic and memorable. The following method allows you to animate shapes or text in both main and interactive sequences on special slides (Master, Layout, or Notes) in presentations.

SetSpecialSlideAnimation

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{slideType}/animation PUT Sets an animation for a shape or text on a special slide in a presentation saved in a storage. SetSpecialSlideAnimation

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of a regular slide.
slideType SpecialSlideType path true The type of a special slide.
animation SlideAnimation body true The data transfer object with animation parameters.
password string header false The password to open the presentation.
folder string query false The folder where the presentation file is located.
storage string query false The storage where the folder is located.

Example 1

The document MyPresentation1.pptx saved in the default storage contains three shapes on the Layout of the first regular slide. Set the Fade effect to the second shape and trigger it to begin playing after the previous animation. Set the Blink effect to the third shape and trigger it to begin playing when clicked.

cURL Solution

SDK Solutions

Example 2

The document MyPresentation2.pptx saved in the default storage contains four shapes on the Layout slide of the first regular slide. Set the Fly effect from below for the fourth shape by clicking on the second shape.

cURL Solution

SDK Solutions

SDKs

Check Available SDKs to learn how to add an SDK to your project.