jQuery and Zepto background image stretcher
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
test
LICENSE
README.md

README.md

Spandex

A jQuery and Zepto plugin for stretchy backgrounds.

current status: in development

Tested:

  • Chrome
  • Firefox
  • IE 7 and 8
  • Safari
  • iOS

Basic usage

$("body").spandex("/images/studio54.jpg");

See tests for other examples.

IE

If you have problems in IE check for img { maxWidth: 100%; } or similar as it creates problems some how, seems the only way to fix it is to remove it rather than redefine it.

Credits

Thanks to tequila for sponsoring the build and srobbin for backstretch.