concept movement in category javascript
appears as: movement, movement

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.
The MoveBy effect accepts no effect-specific options. The behavior of the from and to options on the MoveBy effect is similar to how those options affect the Scale effect; that is, they clip the movement by the percentages that they specify. Display the Effects Lab page in your browser and experiment with the values of x and y, and then with the from and to options until you are familiar and comfortable with their operation.
Table 7.1. Draggable options
Description
revert A Boolean value that specifies whether the reverteffect callback will be invoked when the drag operation stops. Defaults to false. snap A dimension (in pixels) used to specify whether movement during a drag operation “snaps” to a grid of that size. Defaults to no snapping. zindex A value that specifies the CSS z-index to be applied to the element during a drag operation. By default the element’s z-index is set to 1000 while dragging. ghosting A Boolean value specifying whether ghosting is enabled during a drag operation. Defaults to false (no ghosting). constraint A setting that constrains movement to the horizontal or vertical axis. By default, no constraint is applied. handle An element to be used as the handle to start the drag operation. Omitting this option specifies that an element is its own handle. change A callback function invoked during a drag operation whenever the position of the element changes. starteffect A callback function invoked at the beginning of a drag operation to apply an effect to the element. By default, an Opacity effect is applied. reverteffect A callback function invoked at the end of a drag operation to perform whatever operation is appropriate to implement revert. It is only called if revert is true. When enabled, the default behavior is to move the element back to its original position. endeffect A callback function invoked at the end of a drag operation to apply an effect to the element. By default, the element is returned to normal Opacity.