---
name: "Animation.export"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "Animation.export - 导出动画队列"
---

## Animation.export

> [VERSION] Base Library >= 2.21.8

### Description

Export the animation queue. Each call to export clears previous animation operations

### Parameters

None


### Return Value

Type: `AnimationExportResult`

Animation data

### Examples

#### Export animation data

```ts
Page({
  data: {
    animationData: {},
  },
  onReady() {
    const animation = ty.createAnimation({ duration: 1000 });
    animation.rotate(45).step();
    this.setData({ animationData: animation.export() });
  },
});
```
