Class tQuery.Animation

Class Summary
Constructor Attributes Constructor Name and Description
 
handle an animation

Method Summary

Class Detail

tQuery.Animation()
handle an animation

Method Detail

  • destroy()
    Destructor
  • {Number} duration()
    get the total animation duration
    Returns:
    {Number} the duration of the whole animation
  • {boolean} isRunning()
    test if the animation is running or not
    Returns:
    {boolean} return true if the animation is running, false otherwise
  • onCapture(fn)
    Set the Capture callback
    Parameters:
    {function} fn
    the update callback
  • onUpdate(fn)
    Set the Update callback
    Parameters:
    {function} fn
    the update callback
  • propertyTweens(fn)
    Set propertyTweens
    Parameters:
    {function} fn
    the update callback
  • pushKeyframe(duration, position)
    Parameters:
    {Number} duration
    the duration of this keyframe validity in seconds
    {Object} position
    list of properties involved in the animations
  • start()
    Start the animation
  • stop()
    Stop the animation