Class APE.anim.Animation

Defined in Animation.js
  • 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.
    


  • Field Summary
    Number duration
              
    Number timeLimit
              
     
    Constructor Summary
    APE.anim.Animation(duration)
               
    APE.anim.Animation(duration)
               
     
    Method Summary
    abort(ex)
               Cancels the anim where it is; does not call onend()
    pause()
               pauses the animation.
    reset()
               resets the animation to position 0.
    resume()
               unpauses the animation.
    run(position)
               Run must be implemented by user.
    seekTo(pos, transitionBackwards)
               Seeks to a certain position along the duration timeline.
    start()
               Call this method to start the anim.
    stop(ended)
               Ends the anim.
    toggleDirection()
               undocumented
    toString()
               undocumented
     Number transition(p)
              
     
    Event Summary
    void onabort(ex)
               If an error occurred, onabort throws the error.
    void onend()
               fires when stop() is called or the Animation successfully completes.
    void onstart()
               fires when the Animation starts, when seekTo is called.
     
    Field Detail

    duration

    Number duration

    timeLimit

    Number timeLimit
    Constructor Detail

    APE.anim.Animation

    APE.anim.Animation(duration)
    APE.anim.Animation(duration)

    Method Detail

    abort

    abort(ex)

    pause

    pause()

    reset

    reset()

    resume

    resume()

    run

    run(position)

    seekTo

    seekTo(pos, transitionBackwards)

    start

    start()

    stop

    stop(ended)

    toggleDirection

    toggleDirection()

    toString

    toString()

    transition

    Number transition(p)

    Event Detail

    onabort

    onabort(ex)

    onend

    onend()

    onstart

    onstart()

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