Home

# Library goog.fx.anim

Function Summary
| `cancelAnimationFrame_()` Cancels an animation frame created by requestAnimationFrame_().
| `cancelMozAnimationFrame_()` Cancels an animation frame created by requestAnimationFrame_().
| `cancelTimer_()` Cancels a timer created by requestTimer_().
| `cycleAnimations_(number now)` Cycles through all registered animations.
| `registerAnimation(?goog.fx.anim.Animated animation)` Registers an animation to be cycled on the global timer.
| `requestAnimationFrame_()` Requests an animation frame based on the requestAnimationFrame and cancelRequestAnimationFrame function pair.
| `requestMozAnimationFrame_()` Requests an animation frame based on the requestAnimationFrame and cancelRequestAnimationFrame function pair.
| `requestTimer_()` Requests a scheduled timer call.

`setAnimationWindow(?Window 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.

| `unregisterAnimation(?goog.fx.anim.Animated animation)` Removes an animation from the list of animations which are cycled on the global timer.