ElementStack 1.1 for jQuery

ElementStacks 1.1 stacks elements/images on top of each other with a funky animation.

jQuery version of ElementStacks by Oskar Krawczyk.

New in 1.1:

Dependencies

How to use

$(<wrapper>).elementStacks();

Options

Usage

Example 1: initialCollapse = true
Example 2: with stuckWithItem function

Using a function which returns a random index:

function(wrapper, opts) {
    var imgs = $(opts.itemsSelector, wrapper);
    return imgs[Math.floor(Math.random()*imgs.length)]
}

Download

License

ElementStacks is licensed under MIT.

15 March 2010