Inertia

Made in The Wall

Run, run... not you, The Wall! The Wall supports inertia in drag release. You may move your wall and see it run until it stops. Set inertia=true and your wall will be free to move. Have you enabled the automatic positioning? No problem.



CONFIGURATION


Configuration The Wall
                // Define The Wall
                var maxLength    = 100; // Max Number images
                var counterFluid = 1;
                var wallFluid = new Wall("wall", {
                                "draggable":true,
                                "inertia":true,
                                "width":150,
                                "height":150,
                                "rangex":[-100,100],
                                "rangey":[0,1],
                                callOnUpdate: function(items){
                                    items.each(function(e, i){
                                        var a = new Element("img[src=/your/folder/images/"+counterFluid+".jpg]");
                                            a.inject(e.node).fade("hide").fade("in");
                                        counterFluid++;
                                        // Reset counter
                                        if( counterFluid > maxLength ) counterFluid = 1;
                                    })
                                }
                            });
                // Init Fluid Wall
                wallFluid.initWall();