Show:
Module: animation
Parent Module: raska

Controller for the animation routines

Constructor

AnimationChainController ()

Static Methods

AnimationChainController._looper ()
private

Controls the execution of the animation loop

AnimationChainController.animate ()
chainable

Handles the periodic draw of the elements in this Raska instance

AnimationChainController.execute
(
  • then
  • interval
)
chainable

Executes all current animations in loop

Parameters:

  • then Function

    What to do after all animations are done

  • interval Number

    Interval between animations

AnimationChainController.execute
(
  • then
  • interval
)
chainable

Executes a destructive navigation/execution on all registered animations in this chain

Parameters:

  • then Function

    What to do after all animations are done

  • interval Number

    Interval between animations

AnimationChainController.execute
(
  • what
)

Executes a given delegate whenever possible

Parameters:

  • what Function

    The delegate whe want to execute

AnimationChainController.register
(
  • animation
)
chainable

Registers a given animation object to be called

Parameters:

  • animation raska.baseAnimation

    Animation spec instance

AnimationChainController.resetElement ()
chainable

Resets changed element attributes to the default value

AnimationChainController.restoreFromSavedState ()
chainable

Restores the animations from its initial saved state

AnimationChainController.saveStates ()
chainable

Saves the initial states for all animations handled by this chain

AnimationChainController.stop ()
chainable

Stops the current animation

AnimationChainController.stop ()
chainable

Clears all saved states from the chain