Set an Animation

Introduction

Animation in PowerPoint presentations is a powerful tool for creating interactive and engaging presentations. It enables the addition of motion, transition effects between slides, and other animated elements to make your presentation more dynamic and memorable. The following method allows you to set an animation for a presentation shape or text. The animation can be set to both the main and interactive sequences.

SetAnimation

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/animation PUT Sets an animation for a shape or text. SetAnimation

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a 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 has three shapes on the first 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 has four shapes on the first 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.