PublicControllerInterface
The public interface for the animation controller module
Table of Contents
-
Static Methods
- PublicControllerInterface.execute()
- PublicControllerInterface.fadeIn(stepIncrement)
- PublicControllerInterface.fadeIn(stepIncrement)
- PublicControllerInterface.loop(interval)
- PublicControllerInterface.move(configuration)
- PublicControllerInterface.saveInitialStates()
- PublicControllerInterface.stop()
- PublicControllerInterface.then()
Constructor
PublicControllerInterface
-
targetElement
Parameters:
-
targetElement
_basicElementThe element we want to animate
Static Methods
PublicControllerInterface.execute
()
Executes the current chain of animations
PublicControllerInterface.fadeIn
-
stepIncrement
Executes a fadein effect on a given element
Parameters:
-
stepIncrement
NumberThe speed the animation executes
PublicControllerInterface.fadeIn
-
stepIncrement
Executes a fadeOut effect on a given element
Parameters:
-
stepIncrement
NumberThe speed the animation executes
PublicControllerInterface.loop
-
interval
Executes the current chain of animations (in loop)
Parameters:
-
interval
NumberThe interval between executions of each animation
PublicControllerInterface.move
-
configuration
Moves a given element around (within canvas' boundaries)
Parameters:
-
configuration
FunctionHow to move the element around
PublicControllerInterface.saveInitialStates
()
Enables the feature of saving the initial state for each animations
PublicControllerInterface.stop
()
Stops any active loop animation and clear all saved states up until this point
PublicControllerInterface.then
()
A simple fluent helper to assist in the construct of a better coding when animating elements