# bacon.animationframe

> Leverage requestAnimationFrame in [Bacon.js](https://github.com/baconjs/bacon.js) way!

Latest version **0.2.2** (published 2015-12-22) · 0 weekly downloads

## Install

```sh
npm install bacon.animationframe
pnpm add bacon.animationframe
yarn add bacon.animationframe
bun add bacon.animationframe
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2015-12-22 |
| First published | 2014-12-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel K |
| Maintainers | wolfflow |
| Keywords | bacon.js, bacon, frp, functional, reactive, programming, animation, requestanimationframe, animationframe, time, polling, scheduler |

## Links

- npm: https://www.npmjs.com/package/bacon.animationframe
- Repository: https://github.com/wolfflow/bacon.animationFrame
- Homepage: https://github.com/wolfflow/bacon.animationFrame#readme
- Issues: https://github.com/wolfflow/bacon.animationFrame/issues
- npm.io page: https://npm.io/package/bacon.animationframe

## Dependencies (1)

- [baconjs](https://npm.io/package/baconjs.md) ^0.7.8

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2015-12-22
- 0.2.1 — 2014-12-23
- 0.1.0 — 2014-12-23

## README

# bacon.animationFrame

Leverage requestAnimationFrame in [Bacon.js](https://github.com/baconjs/bacon.js) way!

## Methods

<a name="bacon-scheduleanimationframe"></a>
[`Bacon.scheduleAnimationFrame`](#bacon-scheduleanimationframe "Bacon.scheduleAnimationFrame(): EventStream[Number]")

Returns an EventStream with requestID values produced on each animationFrame tick.

<a name="bacon-repeatedlyonframe"></a>
[`Bacon.repeatedlyOnFrame(values, divisor)`](#bacon-repeatedlyonframe "Bacon.repeatedlyOnFrame(values: Array[A], divisor: Number): EventStream[A]")

Repeats given elements indefinitely on nth frame (divisor parameter, default value is 1).
Similar to [Bacon.repeatedly](https://github.com/baconjs/bacon.js#bacon-repeatedly), but uses `requestAnimationFrame` instead of `setTimeout/setInterval`

## Install

For [node.js](http://nodejs.org/) users

    npm install bacon.animationframe

For [bower](https://github.com/twitter/bower) users:

    bower install bacon.animationframe

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