Skip to content
zenui/react-hooks

useVisibilityChange

Track whether the page is visible or hidden in a background tab. Use it to pause video, polling or animations the user cannot see.

Level
Basic
Since
v1.0.0
import {useVisibilityChange} from '@zenuilabs/react-hooks';
Loading demo_

More in Browser & Device