# animation-frame-polyfill

> Polyfill requestAnimationFrame and cancelAnimationFrame

Latest version **1.1.0** (published 2026-02-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install animation-frame-polyfill
pnpm add animation-frame-polyfill
yarn add animation-frame-polyfill
bun add animation-frame-polyfill
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2026-02-25 |
| First published | 2016-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eric King |
| Maintainers | webdeveric |
| Keywords | requestAnimationFrame, cancelAnimationFrame, cancel, request, animation, frame, polyfill |

## Links

- npm: https://www.npmjs.com/package/animation-frame-polyfill
- Repository: https://github.com/webdeveric/animation-frame-polyfill
- Homepage: https://github.com/webdeveric/animation-frame-polyfill#readme
- Issues: https://github.com/webdeveric/animation-frame-polyfill/issues
- npm.io page: https://npm.io/package/animation-frame-polyfill

## Alternatives

- [@luma.gl/experimental](https://npm.io/package/@luma.gl/experimental.md) — 77.1K weekly downloads
- [persona-harness](https://npm.io/package/persona-harness.md) — 4.7K weekly downloads
- [@tsparticles/effect-bubble](https://npm.io/package/@tsparticles/effect-bubble.md) — 4.6K weekly downloads
- [f3d](https://npm.io/package/f3d.md) — 730 weekly downloads
- [spark-html-motion](https://npm.io/package/spark-html-motion.md) — 298 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2026-02-25
- 1.0.3 — 2025-12-28
- 1.0.2 — 2020-11-16
- 1.0.1 — 2016-11-03
- 1.0.0 — 2016-08-22

## README

# Animation Frame Polyfill

## Installation

```shell
pnpm add animation-frame-polyfill
```

```shell
npm install animation-frame-polyfill --save
```

## Example Usage (es2015)

```js
import {
  requestAnimationFrame,
  cancelAnimationFrame,
} from "animation-frame-polyfill";
```

---
_Source: https://npm.io/package/animation-frame-polyfill · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
