https://github.com/lightapis/fullscreen-orientation
Set fullscreen orientation.
https://github.com/lightapis/fullscreen-orientation
fullscreen fullscreen-orientation mobile orientation video
Last synced: 5 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-19T09:21:20.000Z (over 1 year ago)
- Last Synced: 2025-02-18T05:34:28.308Z (5 months 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)