Class blade.core.animation.Translation
Object
|
+--blade.core.animation.Sequence
|
+--blade.core.animation.Translation
- class
blade.core.animation.Translation
- extends blade.core.animation.Sequence
Translates (slides) an element
Defined in animation.js
Method Summary |
function
|
handle()
Dummy event handler - this should be overridden by the implementing class
|
blade.core.animation.Translation
function blade.core.animation.Translation(element, vector, length, speed)
Parameters:
length
- the length of the translation/slide
speed
- speed of the animation, in px/sec
id
- id of the element to translate
x
- the x scaling factor of length (0 to 1)
y
- the y scaling factor of length (0 to 1)
handle
function handle()
Dummy event handler - this should be overridden by the implementing class