Get new jQuery plugins just once a week
July 30, 2013
imageFill-js | jQuery plugin to make images fill their containers
imagefill-js is a jQuery plugin to make images fill their containers and also be centered .Its a potentially useful tool for Responsive Web Design.
Given images that vary in sizes you can make images stretch to their containers.
It has got two options :
- runOnce : Imagefill.js continuously checks to see if the size of the image container changes, then it adjusts the size of the image inside.
- throttle : This option lets you adjust the frequency of this check (default is 100ms).
Created by John Polacek
Sign up for our weekly newsletter.