Animate PowerPoint Shape with FloatIn Effect Using C#
If you’re looking to energize your PowerPoint presentations using C#, the FloatIn animation is a smooth and modern choice. In this tutorial, you’ll learn how to apply the FloatIn effect to shapes programmatically using the Openize.OpenXML-SDK for .NET—a powerful and lightweight library to manipulate PowerPoint files without relying on Office Interop.

What is the FloatIn Animation?
The FloatIn effect brings shapes onto the slide in an elegant upward motion. It’s a subtle, attention-grabbing entrance effect that feels more modern compared to traditional animations.
Perfect for:
- Highlighting key shapes like callouts or diagrams
- Presenting charts or statistics
- Creating engaging intro slides
Installing the Openize.OpenXML-SDK
Before you dive into the code, install the SDK from NuGet:
Install-Package Openize.OpenXML-SDK
This package enables you to create and animate PowerPoint slides in C#—ideal for automated reporting, slide generation, and templating scenarios.
C# Code Example: Animate with FloatIn Effect
Here’s a complete snippet that:
- Loads or creates a
.pptx
file - Adds a slide and a rectangle shape
- Applies the FloatIn animation
- Saves the file
This generates a professional-looking animated slide without needing PowerPoint installed on your system.
Why Use Openize.OpenXML-SDK?
Key Features:
- No dependency on PowerPoint or Office installation
- Supports a wide range of shape and text animations
- Ideal for backend services, web apps, and data pipelines
- Lightweight and easy to integrate with CI/CD or cloud environments
Pro Tips for Dynamic Presentations
- Use “FloatIn” to animate key metrics or data points
- Combine with “WithPrevious” trigger for fluid sequences
- Batch-generate slides for multiple datasets using loops
- Customize timing and direction to create engaging sequences
Frequently Asked Questions
Q: What other effects are supported by Openize.OpenXML-SDK?
A: Along with FloatIn, the SDK supports Zoom, Fade, Bounce, FlyIn, and many more.
Q: Can I animate text boxes or images too?
A: Yes. Any drawable shape—text, images, charts—can be animated with supported effects.
Q: Can animations be timed or delayed?
A: Definitely. You can configure the trigger behavior like WithPrevious
, AfterPrevious
, or OnClick
, and even adjust timing options.
Q: Is this compatible with .NET Core or .NET 6+?
A: Yes. The SDK supports .NET Framework, .NET Core, and the latest .NET versions.
Final Thoughts
Programmatic animations add a professional touch to presentations, especially when generated dynamically. With C# and Openize.OpenXML-SDK, applying a FloatIn effect becomes effortless and scalable.