func_unit.move(options, callback) -> funcUnit
{String|Object}
A selector or coordinates describing the motion of the move.
Passing a string selector to move the mouse. The move runs to the center of the element matched by the selector. The following moves from the center of #foo to the center of #bar.
S('#foo').move('#bar')
You can pass in coordinates as clientX and clientY:
S('#foo').move('100x200')
Or as pageX and pageY
S('#foo').move('100X200')
Or relative to the start position S('#foo').move('+10 +20')
You can configure the duration, start, and end point of a move by passing in a json object.
//drags from 0x0 to 100x100 in 2 seconds
S('#foo').move({
from: "0x0",
to: "100x100",
duration: 2000
})
{optional:Function}
a callback that runs after the drag, but before the next action.
{funcUnit}
returns the funcunit selector for chaining.
Moves an element into another element or coordinates. This will trigger mouseover mouseouts accordingly. This takes the same paramameters as [Syn.prototype.move move].