---
url: /api/kiln/interfaces/AnimationStateSpec.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / AnimationStateSpec

# Interface: AnimationStateSpec

One state of the graph: the clip it plays and how.

## Properties

| Property | Type | Description |
| ------ | ------ | ------ |
|  `clip?` | `string` | The clip's name (sprite sheet clip, or glTF animation). Default: the state's name. |
|  `loop?` | [`LoopMode`](../type-aliases/LoopMode.md) | Overrides the clip's loop mode. Default: the sprite clip's mode, or 'loop' for glTF clips. |
|  `speed?` | `number` | Playback rate. Default 1. |
|  `events?` | readonly [`AnimationEventSpec`](AnimationEventSpec.md)\[] | Events fired as the playhead crosses them, every loop. |
