Skip to content

webmodules/on-full-screen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

on-full-screen

Cross-browser wrapper for the onfullscreen event.

How to use

import ofs from 'on-full-screen';
import isFs from 'is-full-screen';
const dispose = ofs(() => {
  if (isFs()) {
    console.log('we are fullscreened');
  }
});
setTimeout(dispose, 1000)

License

MIT

About

Cross-browser wrapper for the `onfullscreenchange` event

Resources

Stars

Watchers

Forks

Packages

No packages published