Class tQuery.Animations
- Defined in: tquery.animations.js
Constructor Attributes | Constructor Name and Description |
---|---|
handle multiple tQuery.Animation mutually exclusive
|
Method Summary
Class Detail
tQuery.Animations()
handle multiple tQuery.Animation mutually exclusive
Method Detail
-
add(name, animation)Add an animation
- Parameters:
- {String} name
- the name of the animation to add
- {tQuery.Animation} animation
- the tQuery.Animation to add
-
destroy()Destructor
-
{boolean} isRunning()test if an animation is running
- Returns:
- {boolean} true if an animation is running, false otherwise
-
{String[]} names()return the name of all animations
- Returns:
- {String[]} list of the animations names
-
start(animationName)Start a animation. If an animation is already running, it is stopped
- Parameters:
- {string} animationName
- the name of the animation
-
stop()Stop the running animation if any