fullscreen-orientation
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i fullscreen-orientation

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

4.47 kB

Total Files

6

Last publish

Collaborators

  • dragonish