Show:
Module: animation
Parent Module: raska

The public interface for the animation controller module

Constructor

PublicControllerInterface
(
  • targetElement
)

Parameters:

Static Methods

PublicControllerInterface.execute ()
chainable

Executes the current chain of animations

PublicControllerInterface.fadeIn
(
  • stepIncrement
)
chainable

Executes a fadein effect on a given element

Parameters:

  • stepIncrement Number

    The speed the animation executes

PublicControllerInterface.fadeIn
(
  • stepIncrement
)
chainable

Executes a fadeOut effect on a given element

Parameters:

  • stepIncrement Number

    The speed the animation executes

PublicControllerInterface.loop
(
  • interval
)
chainable

Executes the current chain of animations (in loop)

Parameters:

  • interval Number

    The interval between executions of each animation

PublicControllerInterface.move
(
  • configuration
)
chainable

Moves a given element around (within canvas' boundaries)

Parameters:

  • configuration Function

    How to move the element around

PublicControllerInterface.saveInitialStates ()
chainable

Enables the feature of saving the initial state for each animations

PublicControllerInterface.stop ()
chainable

Stops any active loop animation and clear all saved states up until this point

PublicControllerInterface.then ()
chainable

A simple fluent helper to assist in the construct of a better coding when animating elements