This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
List Morph Demo
Demos > List Morph Demo
This is a demonstration of how Effect.Morph can be used to indicate a list reordering to the user. Click anywhere on the list to initiate a random reorder.
Lorem
ipsum
dolor
sit
amet
Source code of this demo
Array.prototype.shuffle = function() {
return this.sortBy(Math.random);
};
(function() {
function foo() {
$('scripty_morph_demo').select('div').shuffle().each(function(e, i) {
e.morph('top:' + i*e.getHeight() + 'px', { duration: 0.4 });
});
}
$('scripty_morph_demo').observe('click', foo);
foo();
})();







