Skip to content

DOM Visible

Reactive document.visibilityState

🎬 Usage

<script>
    import {dom_visible} from "sveltecore"

    const visible = dom_visible()
</script>

👩‍💻API

Returns

A subscribable store that contains the current visibility state.

🧪 Playground


Last update: 2022-11-13