Skip to content

Make sure an element's background image always fills the screen, regardless of aspect ratio.

Notifications You must be signed in to change notification settings

AJCrowley/ImageScaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ImageScaler.js

This guy just makes sure an element's background image always fills the screen, regardless of aspect ratio.

Requires ImageInfo.js and jQuery

Usage:

var imageScaler = new ImageScaler($("selector"));

About

Make sure an element's background image always fills the screen, regardless of aspect ratio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published