Class cssa_AnimationInteger
Object
|
+--cssa_Animation
|
+--cssa_AnimationInteger
- class
cssa_AnimationInteger
- extends cssa_Animation
Animation class to change CSS properties of the integer type of any unit
Author: Arnaud Aubert - aaubert@magesi.com
Defined in cssa.js
Field Summary |
string |
curUnit
Unit of the animated integer (px, %, em, pt...) |
int |
curVal
Current value of the animated integer |
int |
from
Starting integer animated value |
int |
iInc
Incremental value added to the property each time it is being recomputed |
Object |
nbFrames
|
Constructor Summary |
cssa_AnimationInteger
(<element> elem, propName, <String> to, <int> duration, <boolean> bLoop, <boolean> bRevert)
Animation of any integer based value.
|
Method Summary |
void
|
tick()
|
curUnit
string curUnit
Unit of the animated integer (px, %, em, pt...)
curVal
int curVal
Current value of the animated integer
from
int from
Starting integer animated value
iInc
int iInc
Incremental value added to the property each time it is being recomputed
nbFrames
Object nbFrames
cssa_AnimationInteger
cssa_AnimationInteger(<element> elem, propName, <String> to, <int> duration, <boolean> bLoop, <boolean> bRevert)
Animation of any integer based value. The value can be in any unit (%, em, pt, px...)
Parameters:
elem
- A reference to the element being animated
to
- Final value for the CSS property
duration
- Number of milliseconds for the animation to complete
bLoop
- True if the animation must restart upon completion
bRevert
- True if the animation should reanimate to its initial value upon completion
propname
- Name of the CSS property name to animate
Returns:
A new animation of integer values
Author: Arnaud Aubert - aaubert@magesi.com
tick
void tick()
Documentation generated by
JSDoc on Fri Oct 13 23:00:17 2006