Skip to main content
Vuetify0 v1.0 is here
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

Throttles callbacks to the next animation frame with cancel-then-request deduplication. Cleans up automatically on scope disposal.

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?

© 2016-1970 Vuetify, LLC
Services
Ctrl+/