0.2.0 • Published 1 year ago

fullscreen-orientation v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago