> For the complete documentation index, see [llms.txt](https://help.craftsmanplus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.craftsmanplus.com/play/properties/transform.md).

# Transform

<figure><img src="https://3019081569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZBycFFNxrdS0X9OsGtmT%2Fuploads%2Fgit-blob-128559ccbba4937292aaee0f24cb76f3e330cc87%2FTransform.png?alt=media" alt=""><figcaption></figcaption></figure>

The **Transform** section controls a layer’s position, size, and orientation inside its parent (the canvas, or a group/container if the layer is inside one). Transform is the core way you place and arrange content in PLAY.

Transform includes:

* **Position:** X, Y
* **Size:** W, H + Aspect Ratio Lock
* **Rotation:** Rotation (degrees)
* **Flip:** Flip Horizontal, Flip Vertical
* **Alignment:** Left / Center / Right / Top / Middle / Bottom

### How Transform Works in PLAY

PLAY does not position layers using pixels. Instead, Transform uses a **percentage-based system**:

* **X / Y** are the layer’s position as a percentage relative to the **parent**.
* **W / H** are the layer’s size as a percentage relative to the **parent**.

This makes layouts scale naturally as the canvas (or container) changes size.

#### Parent Space: Artboard vs Groups

Transform is always relative to the layer’s **parent**:

* If the layer is not inside a group/container, the **canvas** is the parent.
* If the layer is inside a group/container, the **group/container** is the parent.

{% hint style="info" %}
**Example:** If a layer is inside a group, **X = 50% (Anchor Point = Center)** places it halfway across the *group*, not halfway across the full artboard.
{% endhint %}

### **Position**

X and Y are measured from the **left/top edges** of the parent.

#### X

Moves the layer left/right within its parent using a percentage.

* **0%** = left edge of the parent
* **100%** = right edge of the parent
* Values can go **below 0%** or **above 100%** to position the layer partially or fully off-parent.

#### Y

Moves the layer up/down within its parent using a percentage.

* **0%** = top edge of the parent
* **100%** = bottom edge of the parent
* Values can go **below 0%** or **above 100%**.

{% hint style="info" %}
***Note:** The origin of a layer's X/Y is the anchor point of that layer, learn more about anchor points* [*here*](/play/properties/transform/responsivity/anchor-point.md)*. For example, a*ligning a layer visually to the right side doesn’t always mean X becomes 100%. X/Y follow the **anchor**, not the layer’s outer edge.
{% endhint %}

### Size

#### W (Width) and H (Height)

Controls how much of the parent’s width/height the layer occupies.

* W/H can exceed **100%** if you want a layer larger than its parent.
* W/H scale as the parent scales, because they’re percentage-based.

#### Aspect Ratio Lock

Between **W** and **H** is an **aspect ratio lock**:

* **Locked:** changing W automatically updates H (and vice versa) to preserve proportions.
* **Unlocked:** W and H can be changed independently.

### Rotation

Rotation is measured in **degrees**.

* **Clockwise** is positive.
* Range: **-360° to 360°**.

### Flip

<div align="left"><figure><img src="https://3019081569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZBycFFNxrdS0X9OsGtmT%2Fuploads%2Fgit-blob-3917093bdbd4261589d2dec0c67a7be7650ee636%2FFlip.png?alt=media" alt="" width="314"><figcaption></figcaption></figure></div>

Flip controls change the **visual orientation** of a layer:

* **Flip Horizontal**
* **Flip Vertical**

These flips affect the appearance of the layer and are not intended to change how position/rotation behaves.

### Alignment Controls

<div align="left"><figure><img src="https://3019081569-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZBycFFNxrdS0X9OsGtmT%2Fuploads%2Fgit-blob-c3bc1c7dc2072633f631dcdb063702fe91519b8d%2FAlignment.png?alt=media" alt="" width="375"><figcaption></figcaption></figure></div>

The alignment row contains **six buttons**:

* Horizontal: **Left (ALT+L)**, **Center (ALT+C)**, **Right (ALT+R)**
* Vertical: **Top (ALT+T)**, **Middle (ALT+M)**, **Bottom (ALT+B)**

Clicking an alignment button **moves the layer by updating its X and/or Y** so it aligns within its parent. Alignment is applied relative to the **parent** (canvas if not grouped, otherwise the group/container).

{% hint style="info" %}
Not every layer type supports every transform property. Depending on the layer type:

* **X/Y/W/H** may appear but be **greyed out** when they can’t be edited.
* Other controls (like **Rotation**, **Flip**, and **Alignment**) may be **hidden entirely** if they aren’t relevant.
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.craftsmanplus.com/play/properties/transform.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
