Does there exist anything to Javascript / jQuery which would allow reorder li blocks in the fashion iPhone does it: this effect can be seen when you reorder apps in iPhone main menu
-
All list items are blocks (images) in 4 x 4 grid
-
When reordering is enabled items have shaky animation effect
-
The user can use mouse/touch to drag to reorder the items
A good place to start is jQuery UI sortable:
http://jqueryui.com/demos/sortable/#display-grid
All other requirements can be added, for example deletable.
The above code assumes HTML like:
How the list and items look like, should be achieved through CSS.
We merely add behaviour with javascript.
See above example: http://jsfiddle.net/KkXZ3/
Ofcourse a lot more needs to be done, like:
– add shakyness
– create/destroy sortable on touch-and-hold
– sliding item animation
– droppable items so that they can turn into containers
In any case, a lot happens in the GUI app behaviour of an iphone, I seriously doubt only 1 widget/script can provide all that behaviour. It’s actually a composition of various techniques and widgets.
This should get you started.