imgSizer.js | Responsive Web Design

imgSizer.js

In short, it cycles through your document, swaps out the images for a transparent GIF, and applies the AlphaImageLoader property to each one. Then, whenever the window’s resized, the script automatically recalculates the proper, proportional height and width of the image, and resizes the spacer graphic accordingly.

  • Resource Name

    imgSizer.js

  • Resource Creator

    Ethan Marcotte

Description

Imgsizer.js cycles through your document, swaps out the images for a transparent GIF, and applies the AlphaImageLoader property to each one.

View on Github Download Resource

Sites that use imgSizer.js

Subscribe to our Newsletter

Add your email address and receive an email every Friday covering off everything worth knowing about building your websites responsively.