shrink-to-viewport

1.0.3 • Public • Published

shrink-to-viewport

Shrinks the target element to fit the viewport

Usage

<div id="test"></div>

<script>
  (function () {
    var elementId = 'test';
    var elementWidth = 800;
    var elementHeight = 600;
    var shrinkOnViewportResize = true;

    shrinkToViewport(elementId, elementWidth, elementHeight, shrinkOnViewportResize);
  })();
</script>

License

shrink-to-viewport is licensed under the MIT license. For the full license, see the LICENSE file.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.32latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.32
1.0.22
1.0.12
1.0.02

Package Sidebar

Install

npm i shrink-to-viewport

Weekly Downloads

8

Version

1.0.3

License

MIT

Last publish

Collaborators

  • adamnowocin