elm-lang/page-visibility

Find out if the page is visible or not.


Keywords
elm, page-visibility
License
Other
Install
elm-package install elm-lang/page-visibility 1.0.1

Documentation

Page Visibility

This library helps you figure out if your app is visible at the moment. If the user is switched into a different tab, maybe you want to stop doing animations or pause a video.

This package is backed by the JavaScript PageVisibility API.