namespace
SAPO.Utility.KeyFrameAnim.KFAContext
Since:
May 2012
Function Summary
returns an atomic keyframe animation. One must call it to trigger it.
convenience function to orchestrate several animation threads in parallel
convenience function to orchestrate a sequence of animation steps, each one after the other
Function Details
function KF
Function
KF(Object
o, [Function
next])
returns an atomic keyframe animation. One must call it to trigger it.
Parameters:
o
-
String id
- element id -
String op
- operation to animate -
Number[] args
- goal arguments (by default are absolute values, unless a trans is passed) -
[ String|Function(init, end) trans ]
- operation to apply to the destination args given the starting state. has two built in functions ('add' and 'multiply'). -
[ String easing ]
- an easing function. by default uses linear. Can be (linear|side|elastic|bounce)(Out|InOut)?(Tri)?
[next]
- a function that gets called once the animation ends. function Par
Function
Par(Object
o, Object[]
threads)
convenience function to orchestrate several animation threads in parallel
Parameters:
o
- put the attributes that are invariant to all the threads here. supports all stuff from KF. Use param next to set an ending callback.
threads
- each step has at least op and args. if the id is the same on several threads, their ops must differ! function Seq
Function
Seq(Object
o, Object[]
steps)
convenience function to orchestrate a sequence of animation steps, each one after the other
Parameters:
o
- put the attributes that are invariant between steps here. supports all stuff from KF. Use param next to set an ending callback.
steps
- each step has at least args. each step catches where the previous one left.