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

## Animation.skew

> [VERSION] Base Library >= 2.21.8

### Description

Skew along the X and Y axes

### Parameters

`Params`

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

### Return Value

Type: `Animation`

Animation instance

### Examples

#### Skew transform

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