image-stretcher

image-stretcher.js

Usage no npm install needed!

<script type="module">
  import imageStretcher from 'https://cdn.skypack.dev/image-stretcher';
</script>

README

ImageStretcher.js

Reference ashhitch/ImageStretcher.js

Installation

bower install image-stretcher

or

npm install image-stretcher

Usage

function initBackgroundResize() {
    jQuery('.visual-area').each(function() {
        ImageStretcher.add({
            container: this,
            image: 'img.bg-stretch'
        });
    });
}