new HeaderMenuSlide(element, start, end, time, opt_acc)
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
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
element |
Element | Dom Node to be used in the animation. | |
start |
Array.<number> | 2D array for start coordinates (X, Y). | |
end |
Array.<number> | 2D array for end coordinates (X, Y). | |
time |
number | Length of animation in milliseconds. | |
opt_acc |
function |
<optional> |
Acceleration function, returns 0-1 for inputs 0-1. |
- Source:
Extends
- goog.fx.dom.PredefinedEffect
Methods
-
updateStyle()
-
- Source: