Options
All
  • Public
  • Public/Protected
  • All
Menu

repeated-animation-frame

repeated-animation-frame

Created with TS-Standard - Typescript Standard Style Guide

Repeatedly call a function or async function with request animation frame.

Npm Package

repeated-animation-frame

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/

Generated using TypeDoc