Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Faux fullscreen implementation
JavaScript CSS
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
fullscreen.css
index.js
template.html
template.js
test.html

Readme.md

fullscreen

Faux fullscreen implementation. Cross-browser compatible, faster and less restrictive than the actual fullscreen API.

Example

var Fullscreen = require('fullscreen'),
    textarea = document.getElementById('content');

var fullscreen = Fullscreen(textarea);

fullscreen.open();

setTimeout(function() {
  fullscreen.close();
}, 1000);

Installation

$ component install matthewmueller/fullscreen

Events

  • open: emitted when we open the element in fullscreen mode
  • close: emitted when we close the element's fullscreen mode

API

Fullscreen(el)

Initialize fullscreen

#open()

open fullscreen mode

#close()

close fullscreen mode

License

MIT

Something went wrong with that request. Please try again.