.move()
FuncUnit.prototype.move
move(options [,success])
Moves an element into another element or coordinates. This will trigger mouseover mouseouts accordingly. This takes the same parameters as [syn.prototype.move move].
Parameters
-
options
{String | Object}
A selector or coordinates describing the motion of the move.
Options as a Selector
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.F('#foo').move('#bar')
-
success
{function()}
Optionala callback that runs after the drag, but before the next action.
Returns
{funcUnit}
returns the funcunit object for chaining.
Options as Coordinates
You can pass in coordinates as clientX and clientY:Or as pageX and pageY
Or relative to the start position
Options as an Object
You can configure the duration, start, and end point of a move by passing in a json object.