---
id: "packages/active-charts/all-exports/animation-types"
title: "Animation types"
description: "AnimationType, ExitAnimationType: generated from the source of active-charts."
url: "/packages/active-charts/all-exports/animation-types"
locale: "en"
revision: "g0mvjxwj5c-88bdbe1c:animation-types"
---

# Animation types

Exported by `@workspace/active-charts`. Generated from the package source; part of [the index of every export](/packages/active-charts/all-exports).

## Types

**AnimationType**

```ts
type AnimationType =
  | 'auto'
  | 'none'
  | 'fade'
  | 'draw-x'
  | 'grow-up'
  | 'grow-down'
  | 'grow-left'
  | 'grow-right'
  | 'slide-in-x'
  | 'slide-in-y'
  | 'pop'
  | 'scale-center'
  | 'fan-out'
  | 'count-up'
  | 'sweep'
  | 'wipe'
  | 'morph-in'
  | 'stagger-segments';
```

Vocabulary of entrance-animation types that a series can request via
`series[i].animation.type`.

Not every type is valid for every series — see {@link ANIMATION_TYPE_WHITELIST}.
Requesting an invalid type falls back to the per-series-type default and
is reported as a development diagnostic.

**ExitAnimationType**

```ts
type ExitAnimationType =
  'auto' | 'none' | 'fade' | 'shrink' | 'slide-out';
```

Vocabulary of exit-animation types — used when a series is hidden via
legend toggle. Kept intentionally small (5 types) — the same `'shrink'`
picks the right axis based on series orientation; `'slide-out'` slides
to the right (or down for horizontal bars).

- `'auto'` resolves to `'fade'` (the safe default for all series types)
- `'none'` skips the exit animation (binary hide)
