---
Product: Aspose.Slides
Platform: python
Page Type: docs
Canonical URL: https://docs.aspose.org/slides/python/developer-guide/working-with-animation
---

# Working with Animation -- Aspose.Slides FOSS for Python

Learn how to work with working with animation using Aspose.Slides FOSS for Python. Covers IAnimationTimeLine, AfterAnimationType, AnimationTimeLine.

Aspose.Slides FOSS for Python provides classes for working with working with animation.

---

## Overview

The key classes involved are:

- **`IAnimationTimeLine`**
- **`AfterAnimationType`**
- **`AnimationTimeLine`**
- **`ITextAnimation`**
- **`ITextAnimationCollection`**

---

## Getting Started

Install Aspose.Slides FOSS for Python:

```bash
pip install aspose-slides-foss
```

### Basic Usage

```python
import aspose.slides_foss as slides
from aspose.slides_foss import ShapeType
from aspose.slides_foss import animation as anim
from aspose.slides_foss.export import SaveFormat

with slides.Presentation() as prs:
    slide = prs.slides[0]
    shape = slide.shapes.add_auto_shape(ShapeType.RECTANGLE, 10, 10, 100, 50)
    effect = slide.timeline.main_sequence.add_effect(
        shape, anim.EffectType.FADE,
        anim.EffectSubtype.NONE,
        anim.EffectTriggerType.ON_CLICK,
    )
    prs.save("animated.pptx", SaveFormat.PPTX)
```

---

## Tips and Best Practices

- Always dispose of document objects after use
- Handle file I/O exceptions when reading or writing files
- Check the [API reference](https://reference.aspose.org/slides/python/) for the latest signatures

---

## API Reference Summary

| Class | Description |
|-------|-------------|
| `IAnimationTimeLine` | See reference docs |
| `AfterAnimationType` | See reference docs |
| `AnimationTimeLine` | See reference docs |
| `ITextAnimation` | See reference docs |
| `ITextAnimationCollection` | See reference docs |

For full details, see the [API Reference](https://reference.aspose.org/slides/python/).

## See Also

- [Aspose.Slides for Python — Enterprise Documentation](https://docs.aspose.com/slides/python-net/)