fullscreen-orientation
v0.2.0
Published
Set fullscreen orientation
Downloads
2
Maintainers
Readme
fullscreen-orientation
Installation
npm install fullscreen-orientation
Usage
Specified element
import { fullscreen } from 'fullscreen-orientation';
// get some element
const video = document.createElement('video');
// orientation handler
const remove = fullscreen(video, 'landscape');
// no longer use, remove handler
remove();
Document
import { fullscreen } from 'fullscreen-orientation';
// orientation handler
const remove = fullscreen('landscape');
// no longer use, remove handler
remove();