Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@essentials/raf

jaredLunde108.4kMIT1.2.0TypeScript support: included

A tiny raf ponyfill

raf, requestAnimationFrame, raf polyfill, request animation frame polyfill, requestAnimationFrame polyfill, raf ponyfill, request animation frame ponyfill, requestAnimationFrame ponyfill

readme


@essentials/raf

Bundlephobia Types NPM Version MIT License

npm i @essentials/raf

A tiny requestAnimationFrame and cancelAnimationFrame ponyfill

Quick Start

import {raf, caf} from '@essentials/raf'

const handle = raf(tick)
caf(handle)

LICENSE

MIT