1.0.7 • Published 7 years ago

fill-image v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Fill image npm

This plugin makes it possible to fill the image height and width in proportion to the size of the parent container.

Browser support

Chrome Firefox (Gecko) Chrome Opera Internet Explorer

Initialize the plugin.

###jQuery

<script>
    $(selector).fillImage()
</script>

###Without jQuery

<script>
    var fill = new FillImage();
    fill.init(selector);
</script>

Html class FillImage

<img src="image-src" class="FillImage" 

Html data attribute data-image="fill"

<img src="image-src" data-image="fill" 

##Destroy fill image

###jQuery

<script>
    $(selector).fillImage.destroy()
</script>

###Without jQuery

<script>
    fill.destroy(selector);
</script>
1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago