# AnimationFrame

> This is the class for signing several watcher on requestanimationframe.

Latest version **1.0.52** (published 2017-05-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install AnimationFrame
pnpm add AnimationFrame
yarn add AnimationFrame
bun add AnimationFrame
```

Provides the command `AnimationFrame`.

## 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.0.52 |
| Published | 2017-05-12 |
| First published | 2016-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sergey Yastrebov |
| Maintainers | crazysquirrel |
| Keywords | TypeScript, requestAnimationFrame, watchers, animations |

## Links

- npm: https://www.npmjs.com/package/AnimationFrame
- Repository: https://github.com/CrazySquirrel/AnimationFrame
- Issues: https://github.com/CrazySquirrel/AnimationFrame/issues
- npm.io page: https://npm.io/package/AnimationFrame

## Dependencies (1)

- [promise-polyfill](https://npm.io/package/promise-polyfill.md) ^6.0.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.52 (latest) — 2017-05-12
- 1.0.51 — 2017-05-10
- 1.0.50 — 2017-05-10
- 1.0.49 — 2017-05-05
- 1.0.48 — 2017-05-05
- 1.0.47 — 2017-05-05
- 1.0.45 — 2017-05-02
- 1.0.44 — 2017-05-02
- 1.0.42 — 2017-05-02
- 1.0.41 — 2017-04-26
- 1.0.40 — 2017-04-26
- 1.0.39 — 2017-04-25
- 1.0.38 — 2017-04-25
- 1.0.33 — 2017-04-25
- 1.0.32 — 2017-04-21
- … 30 more at https://npm.io/package/AnimationFrame/versions

## README

# AnimationFrame

[![npm version](https://badge.fury.io/js/AnimationFrame.svg)](https://github.com/CrazySquirrel/AnimationFrame)
[![Code Climate](https://codeclimate.com/github/CrazySquirrel/AnimationFrame/badges/gpa.svg)](https://codeclimate.com/github/CrazySquirrel/AnimationFrame)
[![Test Coverage](https://codeclimate.com/github/CrazySquirrel/AnimationFrame/badges/coverage.svg)](https://codeclimate.com/github/CrazySquirrel/AnimationFrame/coverage)
[![Issue Count](https://codeclimate.com/github/CrazySquirrel/AnimationFrame/badges/issue_count.svg)](https://codeclimate.com/github/CrazySquirrel/AnimationFrame)
[![Donate](https://img.shields.io/badge/donate-%E2%99%A5-red.svg)](http://crazysquirrel.ru/support/)

This is the class for signing several watcher on requestanimationframe.

## Build

The repository contains pre-compiled files, but if you want to add your
files and compile, then run the following commands in the repository folder.

* npm install
* npm run production

or

* npm run development

The build required NodeJs version 6 or higher.

## Usage

```TypeScript
import AnimationFrame from "AnimationFrame.ts";

let animation = new AnimationFrame();

let ID = animation.subscribe(context,callback,arguments,ID);
```

or

```JavaScript
let AnimationFrame = required("AnimationFrame.js");

let animation = new AnimationFrame();

let ID = animation.subscribe(context,callback,arguments,ID);
```

* context - The context of the called function.
* callback - The called function.
* arguments - An array of arguments of the called function.
* ID - ID which will be signed watcher. One ID can contain only one watcher.

The arguments and ID are optional. If you do not pass the ID, then the subscribe
will return the generated ID, otherwise returns the passed ID.

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