1.0.3 • Published 8 years ago

shrink-to-viewport v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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.

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago