Class cssa_AnimationColor
Object
|
+--cssa_Animation
|
+--cssa_AnimationColor
- class
cssa_AnimationColor
- extends cssa_Animation
Animation class to change CSS properties of any color typed value
Defined in cssa.js
Author: Arnaud Aubert - aaubert@magesi.com
Field Summary |
int |
curBlue
Current blue value (0 to 255) of the animated property |
int |
curGreen
Current green value (0 to 255) of the animated property |
int |
curRed
Current red value (0 to 255) of the animated property |
RGBColor |
from
Starting animated value |
Object |
nbFrames
|
RGBColor |
to
Final value at the end of the animation |
Constructor Summary |
cssa_AnimationColor
(<element> elem, propName, <Color> to, <int> duration, <boolean> bLoop, <boolean> bRevert)
Animation of any color based value.
|
Method Summary |
void
|
tick()
|
curBlue
int curBlue
Current blue value (0 to 255) of the animated property
curGreen
int curGreen
Current green value (0 to 255) of the animated property
curRed
int curRed
Current red value (0 to 255) of the animated property
from
RGBColor from
nbFrames
Object nbFrames
to
RGBColor to
Final value at the end of the animation
cssa_AnimationColor
cssa_AnimationColor(<element> elem, propName, <Color> to, <int> duration, <boolean> bLoop, <boolean> bRevert)
Animation of any color based value. The value can be in rgb or hex format
Parameters:
elem
- A reference to the element being animated
to
- Final color 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 color values
Author: Arnaud Aubert - aaubert@magesi.com
tick
void tick()
Documentation generated by
JSDoc on Fri Oct 13 23:00:17 2006