Skip to main content
Vuetify0 is now in beta!
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

useRaf API

API reference for the useRaf composable.

Explore these related pages for additional context and usage patterns.

PageCategory
useRafSystem
useResizeObserverSystem
useEventListenerSystem

Functions

useRaf

(callback: (timestamp: DOMHighResTimeStamp) => void) => UseRafReturn

Scope-disposed safe requestAnimationFrame.

Properties

isActive

Readonly<Ref<boolean, boolean>>

Whether an animation frame is pending

Methods

cancel

() => void

Cancel pending animation frame

Was this page helpful?

Ctrl+/