Skip to content

cancelAnimationFrame

Cancels a requestAnimationFrame request using the provided handle, with a fallback to clearTimeout.

Usage

ts
import { cancelAnimationFrame } from 'rattail'

const handle = requestAnimationFrame(() => {})
cancelAnimationFrame(handle)

Arguments

ArgTypeDefaults
handlenumber

Return

Type
void