Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/lightapis/fullscreen-orientation
- Owner: LightAPIs
- License: mit
- Created: 2023-10-11T15:34:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-19T09:21:20.000Z (10 months ago)
- Last Synced: 2024-11-02T16:37:00.481Z (12 days ago)
- Topics: fullscreen, fullscreen-orientation, mobile, orientation, video
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/fullscreen-orientation
- Size: 75.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)