xAnimation Preview
This is a preview of xAnimation and it's friend functions. This is currently just an experiment! (26Sep06).
xAnimation | xAniScroll | xAniLine | xAniEllipse | xAniOpacity | xAniSize | more to come...
xAnimation
Time-based animation engine with linear, sine or cosine acceleration.
Syntax
new xAnimation(e[, at[, qc[, tt[, orf[, otf[, oed[, oea[, oef]]]]]]]]);
- e - An object reference or an id str.
- at - Acceleration type: 1=linear, 2=sine(fast start, slow at end), 3=cosine(slow start, fast at end).
- qc - Cycles. Not valid for linear accel. Two cycles will animate to the target and back to the start.
- tt - Total time to animate from current to target.
- orf - onRun function.
- otf - onTarget function.
- oed - onEnd delay. A delay (ms) before onEnd is called. If oed > 0 then no arguments are passed to onEnd.
- oea - onEnd argument. It will be passed to onEnd.
- oef - onEnd function. A function reference or a string. It will be called (or evaluated) at the completion of the animation. If it is a function it will receive two arguments: oef(xa, oea). If onEnd returns (or evaluates to) true then the animation will repeat.
Source Code
View the xAnimation source code, documentation, etc.