repeated-animation-frame
v1.3.0
Published
![Created with ](https://img.shields.io/badge/Created%20with-@programmerraj/create-3cb371?style=flat) [![TS-Standard - Typescript Standard Style Guide](https://badgen.net/badge/code%20style/ts-standard/blue?icon=typescript)](https://github.com/standard/ts
Downloads
5
Readme
repeated-animation-frame
Repeatedly call a function or async function with request animation frame.
Npm Package
Example
import { repeatedAnimationFrame } from 'repeated-animation-frame'
const stop = repeatedAnimationFrame(() => {
// Animate something idk
// This function keeps on getting called
})
// If you want to stop
stop()
Docs
https://chocolateloverraj.github.io/repeated-animation-frame/