Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lightapis/fullscreen-orientation

Set fullscreen orientation.
https://github.com/lightapis/fullscreen-orientation

fullscreen fullscreen-orientation mobile orientation video

Last synced: 7 days ago
JSON representation

Set fullscreen orientation.

Awesome Lists containing this project

README

        

# fullscreen-orientation

## Installation

```shell
npm install fullscreen-orientation
```

## Usage

### Specified element

```javascript
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

```javascript
import { fullscreen } from 'fullscreen-orientation';

// orientation handler
const remove = fullscreen('landscape');

// no longer use, remove handler
remove();
```

## License

[MIT](./LICENSE)