fx.anim

Classes

goog.fx.anim.Animated
An interface for programatically animated objects. I.e. rendered in javascript frame by frame.

Public Protected Private

Global Functions

goog.fx.anim.cancelAnimationFrame_()
Cancels an animation frame created by requestAnimationFrame_().
code »
goog.fx.anim.cycleAnimations_(now)
Cycles through all registered animations.
Arguments:
now : number
Current time in milliseconds.
code »
goog.fx.anim.registerAnimation(animation)
Registers an animation to be cycled on the global timer.
Arguments:
animation : goog.fx.anim.Animated
The animation to register.
code »
goog.fx.anim.requestAnimationFrame_()
Requests an animation frame based on the requestAnimationFrame and cancelRequestAnimationFrame function pair.
code »
goog.fx.anim.setAnimationWindow(animationWindow)
Registers an animation window. This allows usage of the timing control API for animations. Note that this window must be visible, as non-visible windows can potentially stop animating. This window does not necessarily need to be the window inside which animation occurs, but must remain visible. See: https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame.
Arguments:
animationWindow : Window
The window in which to animate elements.
code »
goog.fx.anim.tearDown()
Tears down this module. Useful for testing.
code »
goog.fx.anim.unregisterAnimation(animation)
Removes an animation from the list of animations which are cycled on the global timer.
Arguments:
animation : goog.fx.anim.Animated
The animation to unregister.
code »

Global Properties

goog.fx.anim.TIMEOUT :
Default wait timeout for animations (in milliseconds). Only used for timed animation, which uses a timer (setTimeout) to schedule animation.
Code »
goog.fx.anim.activeAnimations_ :
A map of animations which should be cycled on the global timer.
Code »
goog.fx.anim.animationDelay_ : goog.async.AnimationDelay
An interval ID for the global timer or event handler uid.
Code »
goog.fx.anim.animationWindow_ :
An optional animation window.
Code »

Package fx

Package Reference