React MotionKit
/
hooks
Files
Code
Info
usePageVisible
use-page-visible
SSR-safe hook that reports whether the browser tab is visible, used to pause continuous animations.
usePrefersReducedMotion
use-prefers-reduced-motion
Hydration-safe hook that reports the user's reduced-motion preference and updates when it changes.
useShouldAnimate
use-should-animate
Combines viewport, tab visibility and reduced-motion preference to decide whether a loop should run.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information
usePageVisible
use-page-visible
SSR-safe hook that reports whether the browser tab is visible, used to pause continuous animations.
usePrefersReducedMotion
use-prefers-reduced-motion
Hydration-safe hook that reports the user's reduced-motion preference and updates when it changes.
useShouldAnimate
use-should-animate
Combines viewport, tab visibility and reduced-motion preference to decide whether a loop should run.
Select a component to view its code
Click on any item in the sidebar to get started
Select a component to view its information