> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/animatables/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/animatables/scripting-basics/creating-animations/animating-transform.md).

# Animating Transform

Transform animation scripting examples.

## Position

#### Move AB

```csharp
// Move from (0, 0, 0) to (0, 10, 0) in 1 second
transform.Move(Vector3.zero, new Vector3(0, 10), 1);
```

#### Move Array

```csharp
// Move through all points in 1 second
transform.Move(new Vector3[] { Vector3.zero, new Vector3(0, 1, 0), new Vector3(1, 1, 0) }, 1);
```

## Rotation

#### Rotate AB

```csharp
// Rotate from (0, 0, 0) to (0, 0, 45) in 1 second
transform.Rotate(Vector3.zero, new Vector3(0, 0, 45), 1);
```

#### Rotate Array

```csharp
// Rotate through all points in 1 second
transform.Rotate(new Vector3[] { Vector3.zero, new Vector3(0, 0, 45), Vector3.zero }, 1);
```

## Scale

#### Scale AB

```csharp
// Scale from (0, 0, 0) to (1, 1, 1) in 1 second
transform.Scale(Vector3.zero, Vector3.one, 1);
```

#### Scale Array

```csharp
// Scale through all points in 1 second
transform.Scale(new Vector3[] { Vector3.zero, Vector3.one, Vector3.zero }, 1);
```
