Skip to content

guins/jquery-imgfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Img Fill jQuery Plugin (Version 1.0)

This very simple plugin allows you to fill a html element with 1 or more image(s).

Here is a very simple demo

Examples

Here is a basic exemple

// minimum
$('.my_elements').imgfill();

Here is a full options exemple

// full options
$('.my_elements').imgfill(
{   
    align       : 'center',     // Set the alignment (center, topleft, top, topright, right, bottomright, bottom, bottomleft, left) case insensitive and shortcuts allowed (c, tl, t, tr, r, br, b, bl, l)
    container   : null,         // Define the container class name
    $container  : $(window)     // if you prefer, define directly the container DOM element (It will override "container" option)
});

Cross-browser Compatibility

Chrome/Firefox/Safari and IE6+

License

Feel free to use it, just leave my copyright.

Copyright (c) 2011 Stéphane Guigné

About

A jQuery plugin to fill an element with image(s)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published