# Transforms

Transforms in Elements allow you to manipulate the position, size, and orientation of components all without writing a line of code. Transforms are a powerful way to apply effects like rotating, scaling, translating (moving), and skewing elements, making it easy to add dynamic and interactive visual effects to your design.

You can also use transforms to create hover or focus effects that make elements feel more interactive and responsive.

{% embed url="<https://youtu.be/BFDklORPBHA>" %}

### Type

Specify if the component has transforms enabled or disabled. The Hover effect works in conjuction with [Transitions](https://docs.realmacsoftware.com/elements-docs/elements/components/common-controls/transitions).

| Type Properties | Description                                         |
| --------------- | --------------------------------------------------- |
| None            | No effect classes will be applied to the component. |
| Static          | Enable effects.                                     |
| Hover           | Enable Start and End state hover effects.           |

### Custom ID's for Hover

The component must be nested somewhere inside a component that has the custom ID applied, and the custom id class needs to be formatted with the group modifier, like so: `group/parent-component-id`.

### Transforms

* Origin - Set the origin of the transform.
* Scale - Changes the size of an element by percent.
* Rotate - Rotates an element by a specified degree, supports positive and negative values.
* Translate - Moves an element along the X or Y axis, supports positive and negative values.
* Skew - Skews an element along the X or Y axis, supports positive and negative values.

<figure><img src="https://3876014504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNy6AECEVH2p4eFDicpM1%2Fuploads%2FLHVp35sDUXys8qcl4tUT%2FCleanShot%202024-10-24%20at%2012%E2%80%AF.08.31%402x.png?alt=media&#x26;token=eeed80ec-7213-48a4-b554-20e34f8d3a05" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/elements/components/common-controls/transforms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
