# Scale(float, int)

> Triggers an animation changing this element's transform scale.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements.Experimental](/engine/6000.3/script-reference/unityengine/uielements/experimental.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
ValueAnimation<float> Scale(float to, int duration)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;

### Returns

| Type                                                                                                             | Description |
| ---------------------------------------------------------------------------------------------------------------- | ----------- |
| [ValueAnimation\<float>](/engine/6000.3/script-reference/unityengine/uielements/experimental/valueanimation1.md) |             |

### Remarks

Additional Resources: [ITransform.scale](/engine/6000.3/script-reference/unityengine/uielements/itransform/scale.md)
