> For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt.

# lynx: cancelAnimationFrame() static method

APISummary
取消一个 [`requestAnimationFrame`] 的回调。

## 语法

```ts
cancelAnimationFrame: (requestID: number) => void;
```

### 参数

#### requestID

需要取消的 [`requestAnimationFrame`] 的返回值。

### 返回值

无（`undefined`）。

[`requestAnimationFrame`]: /next/zh/api/lynx-api/lynx/lynx-request-animation-frame.md

## 兼容性

**Compatibility Table**

**Query:** `lynx-api.lynx.cancelAnimationFrame`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/cancelAnimationFrame.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| cancelAnimationFrame | Yes (1.6) | Yes (3.4) | Yes (1.6) | Yes (3.5) | Yes (3.5) | Yes |

**`cancelAnimationFrame`**

Cancel a `requestAnimationFrame` callback.

**Specifications:**

