@essentials/raf

A tiny raf ponyfill

Usage no npm install needed!

<script type="module">
  import essentialsRaf from 'https://cdn.skypack.dev/@essentials/raf';
</script>

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