# @f/raf

> Request animation frame (polyfilled if it doesn&#x27;t exist)

Latest version **1.0.3** (published 2016-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/raf
pnpm add @f/raf
yarn add @f/raf
bun add @f/raf
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-11-10 |
| First published | 2016-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/raf
- Repository: https://github.com/micro-js/raf
- Homepage: https://github.com/micro-js/raf#readme
- Issues: https://github.com/micro-js/raf/issues
- npm.io page: https://npm.io/package/@f/raf

## Recent versions

- 1.0.3 (latest) — 2016-11-10
- 1.0.1 — 2016-02-03
- 1.0.0 — 2016-02-03

## README

# raf

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Request animation frame (polyfilled if it doesn&#x27;t exist)

## Installation

    $ npm install @f/raf

## Usage

```js
var raf = require('@f/raf')

raf(function () {
  element.scrollIntoView()
})
```

## API

### raf(fn)

- `fn` - The function to be executed on the next animation frame

**Returns:** An integer id. Pass this to `raf.cancel(id)` if you want to cancel the frame before it happens.

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/raf.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/raf
[git-image]: https://img.shields.io/github/tag/micro-js/raf.svg
[git-url]: https://github.com/micro-js/raf
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/raf.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/raf

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