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

# lynx: cancelAnimationFrame() static method

APISummary
Cancel a [`requestAnimationFrame`] callback.

## Syntax

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

### Parameters

#### requestID

The return value of the [`requestAnimationFrame`] that needs to be cancelled.

### Return Value

None (`undefined`).

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

## Compatibility

**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:**

