SSR-safe hook that reports whether the browser tab is visible, used to pause continuous animations.
npx shadcn@latest add https://reactmotionkit.com/r/use-page-visible.json
use-page-visible