Enhance PowerPoint Presentations with Animations in JavaScript
Since presentations are meant to present something, their visual appearance and interactive behavior is always considered while creating them.
PowerPoint animation plays an important role in order to make presentation eye-catching and attractive for the viewers. Aspose.Slides for Node.js via Java offers a wide range of options to add animation to PowerPoint presentation:
- apply various types of PowerPoint animation effects on shapes, charts, tables, OLE Objects and other presentation elements.
- use multiple PowerPoint animation effects on a shape.
- use animation timeline to control animation effects.
- create custom animation.
In Aspose.Slides for Node.js via Java, various animations effects can be applied on the shapes. As every element on the slide including text, pictures, OLE Object, table etc is considered as a shape, it means we can apply animation effect on every element of a slide.
Animation Effects
Aspose.Slides supports 150+ animation effects, including basic animation effects like Bounce, PathFootball, Zoom effect and specific animation effects as OLEObjectShow, OLEObjectOpen. You can find a full listing of animation effects in EffectType enumeration.
Additionally, these animation effects can be used in combination with them:
- ColorEffect
- CommandEffect
- FilterEffect
- MotionEffect
- PropertyEffect
- RotationEffect
- ScaleEffect
- SetEffect
Custom Animation
It is possible to create your own custom animations in Aspose.Slides. This can be achieved if you combine several behaviours together into a new custom animation.
Behavior is a building unit of any PowerPoint animation effect. All animation effects are actually a set of behaviours composed into one strategy. You can combine behaviours into a custom animation once and reuse it in other presentations. If you add a new behaviour into a standard PowerPoint animation effect - it will be another custom animation. For example, you can add repeat behaviour to an animation to make it repeat a few times.
Animation Point is a point where behaviour should be applied.
Animation Time Line
Sequence is a collection of animation effects, applied on a concrete shape.
Timeline is a set of Sequences used in a concrete slide. It is an animation engine represented since PowerPoint 2002. In previous Powerpoint versions, it was challenging to add animation effects to presentation, which could be achieved only with different workarounds. Timeline comes to replace on old AnimationSettings class and provide more clear object model for PowerPoint animation. One slide can have only one animation timeline.
Interactive Animation
Trigger allows to define user actions (e.g. button click), that will make a certain animation start. Triggers have been added into the latest PowerPoint version only.
Shape Animation
Aspose.Slides allows to apply animation to shapes, that can be actually text, rectangle, line, frame, OLE Object, etc.
Animated Charts
To create animated charts, you should use all the same classes as for the shapes. However, it is possible to use PowerPoint animation only on chart categories or chart series. You can also apply animation effect to a category element or series element.
Animated text
Except animated text, it is also possible to apply animation to a paragraph.
FAQ
Will animations be preserved when exporting to PDF?
No. PDF is a static format, so animations and slide transitions don’t play. If you need motion, export to HTML5, animated GIF, or video instead.
Can I turn an animated presentation into a video and control the frame rate and frame size?
Yes. You can render the presentation as frames and encode them into a video (e.g., via ffmpeg), choosing the FPS and resolution. Animations and slide transitions are played during rendering.
Will animations remain intact when working with ODP (not just PPTX)?
PPT, PPTX, and ODP are supported for reading and writing, but format differences mean certain effects may look or behave slightly differently. Validate critical cases with real samples.