# Animation.translate(number tx, number ty)
Translates an element

## Support

App capability | Android | iOS | PC | Harmony | Preview
---|---|---|---|---|---
Gadget | **✓** | **✓** | **✓** | V7.35.0+ | Preview
Web app | **X** | **X** | **X** | **X** | /

## Input

Name | Data type | Required | Default value | Description
---|---|---|---|---
tx | number | Yes | / | When only this parameter is specified, it means translating by tx (in px) along the X axis
ty | number | No | / | Translation distance along the Y axis in px

## Output

Return value:  

`Animation` instance

## Sample code

```js
  const animation = tt.createAnimation();

animation.translate(10, 10).step();
  ```
