search

goog.fx.dom.Slide

Provided By
Extends
All Implemented Interfaces
All Known Direct Subclasses

Creates an animation object that will slide an element from A to B. (This in effect automatically sets up the onanimate event for an Animation object)

Start and End should be 2 dimensional arrays

new Slide( element, start, end, time, opt_acc )

Parameters
element(Element|null)

Dom Node to be used in the animation.

start(Array<number>|null)

2D array for start coordinates (X, Y).

end(Array<number>|null)

2D array for end coordinates (X, Y).

timenumber

Length of animation in milliseconds.

opt_acc(Function|null)=

Acceleration function, returns 0-1 for inputs 0-1.

Instance Methods

Instance Properties