0.2.0 • Published 4 months ago

fullscreen-orientation v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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();

License

MIT

0.2.0

4 months ago

0.1.2

7 months ago

0.1.1

7 months ago

0.1.0

7 months ago