Class APE.anim.Transitions

Defined in Animation.js

Easing functions.

  • author: Garrett Smith

    Sigmoid functions based upon work by Emmanuel Pietriga. wobble and spring come from, or are loosely based on Scriptaculous.

    Animation is a Template that passes a position to its run( pos ) method. (you implement run).

    anim.Transitions contains effects for speed/timing, such as acceleration and easing.

  • example:
     
    b = new APE.anim.Animation( "blah" );
    b.run = function(position) { // <-- you implement run.
    
    };
    b.start(); // <-- then call start.
    


  • Constructor Summary
    APE.anim.Transitions()
               
    APE.anim.Transitions()
               
     
    Method Summary
    accel(pos)
               undocumented
    decel(pos)
               undocumented
    easeInEaseOut(pos)
               Adapted from paper by Corey McCaffree: http://dspace.mit.edu/bitstream/1721.1/36904/1/80770344.pdf
    loop(pos)
               Plays the APE.anim forwards and backwards in the same duration.
    none(pos)
               undocumented
    reverse(pos)
               For better performance, use (1-position) instead.
    reverseWarp(pos)
               undocumented
    sigmoid(pos, steepness)
               Sigmoid functions based upon work by Emmanuel Pietriga.
    sigmoid2(pos)
               undocumented
    sigmoid3(pos)
               undocumented
    sigmoid4(pos)
               undocumented
    spring(pos)
               undocumented
    swingTo(pos)
               Based on Easing Equations v2.0 (c) 2003 Robert Penner, all rights reserved.
    swingToFrom(pos)
               undocumented
    tan(pos)
               undocumented
    toString()
               undocumented
    wobble(pos)
               wobble, loop, and spring come from, or are based on Scriptaculous.
     
    Constructor Detail

    APE.anim.Transitions

    APE.anim.Transitions()
    APE.anim.Transitions()

    Method Detail

    accel

    accel(pos)

    decel

    decel(pos)

    easeInEaseOut

    easeInEaseOut(pos)

    loop

    loop(pos)

    none

    none(pos)

    reverse

    reverse(pos)

    reverseWarp

    reverseWarp(pos)

    sigmoid

    sigmoid(pos, steepness)

    sigmoid2

    sigmoid2(pos)

    sigmoid3

    sigmoid3(pos)

    sigmoid4

    sigmoid4(pos)

    spring

    spring(pos)

    swingTo

    swingTo(pos)

    swingToFrom

    swingToFrom(pos)

    tan

    tan(pos)

    toString

    toString()

    wobble

    wobble(pos)

    Documentation generated by JsDoc Toolkit 1.4.0 on Sun Aug 17 2008 17:08:27 GMT-0700 (PDT)