Combines viewport, tab visibility and reduced-motion preference to decide whether a loop should run.
npx shadcn@latest add https://reactmotionkit.com/r/use-should-animate.json
use-should-animate