React MotionKit/hooks
usePageVisibleuse-page-visibleSSR-safe hook that reports whether the browser tab is visible, used to pause continuous animations.
usePrefersReducedMotionuse-prefers-reduced-motionHydration-safe hook that reports the user's reduced-motion preference and updates when it changes.
useShouldAnimateuse-should-animateCombines 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
usePageVisibleuse-page-visibleSSR-safe hook that reports whether the browser tab is visible, used to pause continuous animations.
usePrefersReducedMotionuse-prefers-reduced-motionHydration-safe hook that reports the user's reduced-motion preference and updates when it changes.
useShouldAnimateuse-should-animateCombines 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
3 items
GitHubRB@rbadillap