screenfull.js allows developers to work with fullscreen elements the same away across browsers that support the HTML5 Fullscreen API.
The library smooths out all the differences between browsers and provides universal methods for interacting with the API.
Currently screenfull.js can make any type of element go into fullscreen mode, but it can also check the browser and see if it's in either fullscreen or normal mode.
screenfull.js is also framework-agnostic, meaning you can easily add it to any existing project, even if it's coded on top of a complex framework like jQuery or AngularJS.
A demo is included with the download package.
What is new in this release:
- Drop support for Bower. Just use npm.
What is new in version 2.0.0:
- Remove deprecated .onchange() and .onerror() methods.
Requirements:
- JavaScript enabled on client side
Bình luận không