guins / jquery-imgfill

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)


Languages

Language:JavaScript 83.0%Language:CSS 17.0%