Run a callback on every animation frame with the elapsed time, and pause it with a flag, cleaning up its frame request on unmount.
pnpm dlx shadcn@latest add "https://ui.tealmac.com/r/use-animation-frame.json"