Class zwt.animation.Translation
Extends
zwt.animation.Animation.
A translation animation is used to animate the position of an element (left or top).
Defined in: Translation.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.animation.Translation(Element_element)
Construct a translation animation.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.animation.Translation.TYPE_HORIZONTAL
Indicate a horizontal animation
|
<static> |
zwt.animation.Translation.TYPE_VERTICAL
Indicate a vertical animation
|
Method Attributes | Method Name and Description |
---|---|
getType()
Return the translation animation type.
|
|
setType(The)
Set the translation animation type.
|
- Methods borrowed from class zwt.animation.Animation:
- getAnimationEventManager, getDuration, getEngine, onEvent, setDuration, setEngine, step
Class Detail
zwt.animation.Translation(Element_element)
Construct a translation animation.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Element} Element_element
- The element to animate.
Field Detail
<static>
{Integer}
zwt.animation.Translation.TYPE_HORIZONTAL
Indicate a horizontal animation
<static>
{Integer}
zwt.animation.Translation.TYPE_VERTICAL
Indicate a vertical animation
Method Detail
{Integer}
getType()
Return the translation animation type.
- Returns:
- The translation animation type
setType(The)
Set the translation animation type.
- Parameters:
- {Integer} The
- translation animation type