full-house

1.0.1 • Public • Published

full-house

... WHERE EVERYBODY KNOWS YOUR NAME dun nun nun nun - nuh nuh 🎷

make an element or group of elements or a canvas take up as much of the window as possible

NPM js-standard-style

EXAMPLE


var fullHouse = require('full-house')
fullHouse(document.querySelectorAll('.slideShow'))

fullHouse(document.getElementById('canvas'))

fullHouse(document.getElementById('my-selfie'))

the www/demo.js is a good example for layering a bunch of images on top of each other. I use this technique to build a slideshow here

API

fullHouse(nodelist || element || canvas)

given a node list like that returned by querySelectorAll/getElementsByTagName/etc., OR an individual html element like that returned by getElementById, OR a canvas element, fullHouse will resize that/those element(s) to be the size of the window/screen/browser-thing. When the browser is resized, the function will call itself again.

If working with a canvas, the resize event will wipe the screen clear, so hopefully you are drawing to it absolutely constantly and that does not matter much.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
1.0.00

Package Sidebar

Install

npm i full-house

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • coleww