# request-animation-frame-polyfill

> requestAnimationFrame polyfill library

Latest version **1.1.2** (published 2021-02-07) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2021-02-07 |
| First published | 2016-04-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | aluc |
| Maintainers | b6pzeusbc54tvhw5jgpyw8pwz2x6gs |
| Keywords | raf, requestAnimationFrame |

## Links

- npm: https://www.npmjs.com/package/request-animation-frame-polyfill
- Repository: https://github.com/aluc-io/request-animation-frame-polyfill
- Issues: https://github.com/aluc-io/request-animation-frame-polyfill/issues
- npm.io page: https://npm.io/package/request-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.2 (latest) — 2021-02-07
- 1.1.1-rc.4 (rc) — 2021-02-07
- 1.1.1 — 2021-02-07
- 1.1.1-rc.3 — 2021-02-07
- 1.1.1-rc.2 — 2021-02-07
- 1.1.1-rc.1 — 2021-02-07
- 1.1.0 — 2021-02-06
- 1.1.0-rc.14 — 2021-02-06
- 1.1.0-rc.13 — 2021-02-06
- 1.1.0-rc.12 — 2021-02-06
- 1.1.0-rc.11 — 2021-02-06
- 1.1.0-rc.10 — 2021-02-06
- 1.1.0-rc.9 — 2021-02-06
- 1.1.0-rc.8 — 2021-02-06
- 1.1.0-rc.7 — 2021-02-06
- … 18 more at https://npm.io/package/request-animation-frame-polyfill/versions

## README

# request-animation-frame-polyfill

[![npm version](https://badge.fury.io/js/request-animation-frame-polyfill.svg)](https://badge.fury.io/js/request-animation-frame-polyfill)

`requestAnimationFrame` polyfill library for nodejs and old browsers.

## Install

```
$ yarn add request-animation-frame-polyfill
```

## Usage

```typescript
import { requestAnimationFrame, cancelAnimationFrame } from 'request-animation-frame-polyfill'

let id: number
const hello = (time: number) => {
  console.log('hello:' + time)
  id = requestAnimationFrame(hello)
}

id = requestAnimationFrame(hello)
setTimeout( () => cancelAnimationFrame(id), 100)
```

## Build

Build:
```shell
$ yarn build
```

## Example

```
$ cd example
$ npx ts-node main.ts
```

## Deploy

```shell
$ npm login
$ npm publish
```

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