# Sandbox.Sprite.Animation

Contains one or multiple frames that can be played in sequence.

- Kind: class
- Assembly: `Sandbox.Engine`

## Constructors

- [`Animation`](/api/Sandbox.Sprite.Animation/.ctor)

## Properties

- [`EffectiveLoopEnd`](/api/Sandbox.Sprite.Animation/EffectiveLoopEnd): Returns the effective loop end frame index, resolving -1 to the last frame.
- [`EffectiveLoopStart`](/api/Sandbox.Sprite.Animation/EffectiveLoopStart): Returns the effective loop start frame index, resolving -1 to 0.
- [`FrameRate`](/api/Sandbox.Sprite.Animation/FrameRate): The speed of the animation in frames per second.
- [`Frames`](/api/Sandbox.Sprite.Animation/Frames): A list of frames that make up the animation. Each frame is a texture that will be displayed in sequence.
- [`IsAnimated`](/api/Sandbox.Sprite.Animation/IsAnimated): True if we have more than one frame
- [`LoopEnd`](/api/Sandbox.Sprite.Animation/LoopEnd): The frame index at which looping ends. A value of -1 means the last frame.
- [`LoopMode`](/api/Sandbox.Sprite.Animation/LoopMode): The loop mode of the animation. This determines what should happen when the animation reaches the final frame in playback.
- [`LoopStart`](/api/Sandbox.Sprite.Animation/LoopStart): The frame index at which looping starts. A value of -1 means the first frame (0).
- [`Name`](/api/Sandbox.Sprite.Animation/Name): The name of the animation. Allows you to play specific animations by name.
- [`Origin`](/api/Sandbox.Sprite.Animation/Origin): The point at which the rendered sprite is anchored from. This means scaling/rotating a sprite will do so around the origin.
