|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Animation
Defined in animation.js
Field Summary | |
Object |
accelerationProfile
a profile for the speed during the animation |
Object |
element
pointer to element on which the animation is created |
Object |
onfinish
a callback which will be called when the animation finishes |
Object |
onstart
a callback which will be called befor the animation starts |
Object |
speed
the default speed in percents |
Object |
style
pointer to style object |
Constructor Summary | |
Animation
(element, speed, onstart, onfinish, accelerationProfile)
To create a animation object. |
Method Summary | |
Object
|
accelerate(x)
a acceleration profile which will start slow and then accelerate |
Object
|
addAnimation(property, from, to)
to add a animation for a certain property. |
Object
|
checkRun()
to check if the animation is running |
Object
|
constant(x)
the default acceleration profile |
void
|
run()
to start the animation |
Object
|
sine(x)
a acceleration profile which will start slow, accelerate and slow done to the end |
Field Detail |
Object accelerationProfile
Object element
Object onfinish
Object onstart
Object speed
Object style
Constructor Detail |
Animation(element, speed, onstart, onfinish, accelerationProfile)
Method Detail |
Object accelerate(x)
Object addAnimation(property, from, to)
property
- the property which shall be animated
from
- the start value as string
to
- the end value as string
Object checkRun()
Object constant(x)
void run()
Object sine(x)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |