> For the complete documentation index, see [llms.txt](https://plugin-everything.gitbook.io/textbox-3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugin-everything.gitbook.io/textbox-3/transform.md). Agents can also search and read this documentation through its [MCP server](https://plugin-everything.gitbook.io/textbox-3/~gitbook/mcp).

# Transform

Use `Transform Box` and `Transform Text` to move or animate the background and text independently within TextBox 3. Open the group you want to use and turn on its `Enable` switch.

## `Transform Box`

The effect fits and rounds the box first, then applies its transform. Use `Position X` or `Position Y` to offset the background, or animate `Scale Uniform` to grow the background around the text.

Gradients follow the transformed box. The stroke is built after the box transforms. Scaling or skewing the box preserves `Stroke Width` and dash lengths in the current render mode's units. Camera perspective in `3D Plane` can still change their apparent size. [Set the stroke style](https://plugin-everything.gitbook.io/textbox-3/stroke.md).

In `Speech`, a tail set to `Angle & Distance` transforms with the box. `Absolute Point` pins the tip to `Tail Point`.

### `Position Z`

With a 3D text source and `Render Mode` set to `3D Plane`, use `Position Z` to move the box in depth along the source layer's local Z axis. The box fill and stroke move at the new depth, while text renders at its source depth. [Set up camera-aware rendering](https://plugin-everything.gitbook.io/textbox-3/3d.md).

## `Transform Text`

Use `Transform Text` to offset, scale, or rotate the rendered text while the background still fits the original text. For example, to slide text over a stationary box, turn on `Transform Text` > `Enable` and keyframe its `Position X`.

## Shared transform controls

| Control                                   | What it does                                                                                                  |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `Position X` and `Position Y`             | Move the box or text horizontally and vertically in pixels                                                    |
| `Uniform Scale`                           | Links both axes to `Scale Uniform`. Turn it off to set `Scale X` and `Scale Y` independently                  |
| `Scale Uniform`, `Scale X`, and `Scale Y` | Scale around the anchor. At 100% an axis keeps its original size. Use a negative value on one axis to flip it |
| `Rotation`                                | Rotates around the anchor in degrees                                                                          |
| `Skew` and `Skew Axis`                    | Shear the box or text and set the direction of that shear                                                     |
| `Anchor`                                  | Selects the pivot for scale, skew, and rotation                                                               |
| `Anchor X` and `Anchor Y`                 | Offset the selected pivot in pixels                                                                           |

### Choose an anchor

| Option         | What it does                                                                                                                       |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `Center`       | For the box, uses the center of the sized and padded body. For the text, uses the center of the text fit before sizing and padding |
| `Layer Origin` | Uses the text layer's local origin. Choose it for a pivot that stays in the same place as the fit changes                          |

The effect applies scale, then skew, then rotation around the pivot. It applies position last. To reveal a background from the left, turn off `Uniform Scale`, offset `Anchor X` toward the left edge, and animate `Scale X`.

{% hint style="info" %}
Position and anchor offsets follow the text axes in `Off`, the source text plane in `3D Plane`, and the composition axes in `Screen Space`.
{% endhint %}
