Fullscreen api
$ component install component/fullscreen
var fullscreen = require('fullscreen');
fullscreen.on('change', function(full){
console.log('changed to %s', full ? 'fullscreen' : 'regular');
});
setTimeout(function(){
fullscreen();
}, 2000);
- "change" (fullscreen) boolean
Display fullscreen document or el
.
Exit fullscreen mode.
Check if fullscreen is supported.
MIT