---
name: "Animation.skewX"
mode: "api"
versionRequirements:
  - { name: "Base Library", version: "2.21.8" }
title: "Animation.skewX - 对 X 轴坐标进行倾斜"
---

## Animation.skewX

> [VERSION] Base Library >= 2.21.8

### Description

Skew along the X axis

### Parameters

`Params`

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `skewX` | `number` | No | Skew angle on the X axis, range -180~180 |

### Return Value

Type: `Animation`

Animation instance

### Examples

#### X-axis skew

```ts
Page({
  data: {
    animationData: {},
  },
  onReady() {
    const animation = ty.createAnimation({ duration: 500 });
    animation.skewX(30).step();
    this.setData({ animationData: animation.export() });
  },
});
```
