1.0.7 • Published 7 years ago
fill-image v1.0.7
Fill image
This plugin makes it possible to fill the image height and width in proportion to the size of the parent container.
Browser support
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>