Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/deebloo/full-screen

Vanilla web component for full screen api
https://github.com/deebloo/full-screen

Last synced: 15 days ago
JSON representation

Vanilla web component for full screen api

Awesome Lists containing this project

README

        

# full-screen
Vanilla Web Component for the HTML5 full screen API. [Demo](http://deebloo.github.io/full-screen/)

##### Installation
```
npm i --save full-screen

bower install --save full-screen
```

#### Properties

| Name | Description |
| -------------- | ------------- |
| target | The target item that should be full screened. if none is provided it will full screen the whole page |

#### Example
```HTML






Full Screen Video



Full Screen Whole Page

```

#### Dynamic
To dynamically add new Full Screen element.

```JS
var createFullScreen = require('full-screen/full-screen'); // or available by 'createFullScreen' on window if not using modules

var fullScreen = createFullScreen({
target = "#my-element"
});

document.appendElement(fullScreen);
```